Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
laravel-shift authored and StyleCIBot committed Feb 6, 2020
1 parent 7826baa commit 9a95408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Generators/FactoryGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected function buildDefinition(Model $model)
$definition .= self::INDENT . "'{$column->name()}' => ";
$definition .= sprintf("factory(%s::class)", '\\' . $model->fullyQualifiedNamespace() . '\\' . $class);
$definition .= ',' . PHP_EOL;
} else if(in_array($column->dataType(), ['enum', 'set']) and !empty($column->attributes())){
} elseif (in_array($column->dataType(), ['enum', 'set']) and !empty($column->attributes())) {
$definition .= self::INDENT . "'{$column->name()}' => ";
$faker = $this->fakerData($column->name()) ?? $this->fakerDataType($column->dataType());
$definition .= '$faker->' . $faker;
Expand All @@ -84,7 +84,7 @@ protected function buildDefinition(Model $model)
json_encode($column->attributes()),
$definition
);
} else if (in_array($column->dataType(), ['decimal', 'float'])) {
} elseif (in_array($column->dataType(), ['decimal', 'float'])) {
$definition .= self::INDENT . "'{$column->name()}' => ";
$faker = $this->fakerData($column->name()) ?? $this->fakerDataType($column->dataType());
$definition .= '$faker->' . $faker;
Expand Down

0 comments on commit 9a95408

Please sign in to comment.