Skip to content

Commit 9a95408

Browse files
laravel-shiftStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 7826baa commit 9a95408

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Generators/FactoryGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)