File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ protected function buildDefinition(Model $model)
74
74
$ definition .= self ::INDENT . "' {$ column ->name ()}' => " ;
75
75
$ definition .= sprintf ("factory(%s::class) " , '\\' . $ model ->fullyQualifiedNamespace () . '\\' . $ class );
76
76
$ definition .= ', ' . PHP_EOL ;
77
- } else if (in_array ($ column ->dataType (), ['enum ' , 'set ' ]) and !empty ($ column ->attributes ())){
77
+ } elseif (in_array ($ column ->dataType (), ['enum ' , 'set ' ]) and !empty ($ column ->attributes ())) {
78
78
$ definition .= self ::INDENT . "' {$ column ->name ()}' => " ;
79
79
$ faker = $ this ->fakerData ($ column ->name ()) ?? $ this ->fakerDataType ($ column ->dataType ());
80
80
$ definition .= '$faker-> ' . $ faker ;
@@ -84,7 +84,7 @@ protected function buildDefinition(Model $model)
84
84
json_encode ($ column ->attributes ()),
85
85
$ definition
86
86
);
87
- } else if (in_array ($ column ->dataType (), ['decimal ' , 'float ' ])) {
87
+ } elseif (in_array ($ column ->dataType (), ['decimal ' , 'float ' ])) {
88
88
$ definition .= self ::INDENT . "' {$ column ->name ()}' => " ;
89
89
$ faker = $ this ->fakerData ($ column ->name ()) ?? $ this ->fakerDataType ($ column ->dataType ());
90
90
$ definition .= '$faker-> ' . $ faker ;
You can’t perform that action at this time.
0 commit comments