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)
7474 $ definition .= self ::INDENT . "' {$ column ->name ()}' => " ;
7575 $ definition .= sprintf ("factory(%s::class) " , '\\' . $ model ->fullyQualifiedNamespace () . '\\' . $ class );
7676 $ 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 ())) {
7878 $ definition .= self ::INDENT . "' {$ column ->name ()}' => " ;
7979 $ faker = $ this ->fakerData ($ column ->name ()) ?? $ this ->fakerDataType ($ column ->dataType ());
8080 $ definition .= '$faker-> ' . $ faker ;
@@ -84,7 +84,7 @@ protected function buildDefinition(Model $model)
8484 json_encode ($ column ->attributes ()),
8585 $ definition
8686 );
87- } else if (in_array ($ column ->dataType (), ['decimal ' , 'float ' ])) {
87+ } elseif (in_array ($ column ->dataType (), ['decimal ' , 'float ' ])) {
8888 $ definition .= self ::INDENT . "' {$ column ->name ()}' => " ;
8989 $ faker = $ this ->fakerData ($ column ->name ()) ?? $ this ->fakerDataType ($ column ->dataType ());
9090 $ definition .= '$faker-> ' . $ faker ;
You can’t perform that action at this time.
0 commit comments