Skip to content

Commit 3937066

Browse files
committed
Formatting
1 parent 7b9886f commit 3937066

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/Generators/FactoryGenerator.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,18 @@ protected function buildDefinition(Model $model)
6363
}
6464

6565
if ($column->dataType() === 'id') {
66-
$name = Str::substr($column->name(), 0, -3);
67-
$class = Str::studly($column->attributes()[0] ?? $name);
68-
69-
$definition .= self::INDENT . "'{$column->name()}' => ";
70-
$definition .= sprintf("factory(\App\%s::class)", $class);
71-
$definition .= ',' . PHP_EOL;
72-
} else {
73-
$definition .= self::INDENT . "'{$column->name()}' => ";
74-
$faker = $this->fakerData($column->name()) ?? $this->fakerDataType($column->dataType());
75-
$definition .= '$faker->' . $faker;
76-
$definition .= ',' . PHP_EOL;
77-
}
66+
$name = Str::substr($column->name(), 0, -3);
67+
$class = Str::studly($column->attributes()[0] ?? $name);
68+
69+
$definition .= self::INDENT . "'{$column->name()}' => ";
70+
$definition .= sprintf("factory(\App\%s::class)", $class);
71+
$definition .= ',' . PHP_EOL;
72+
} else {
73+
$definition .= self::INDENT . "'{$column->name()}' => ";
74+
$faker = $this->fakerData($column->name()) ?? $this->fakerDataType($column->dataType());
75+
$definition .= '$faker->' . $faker;
76+
$definition .= ',' . PHP_EOL;
77+
}
7878
}
7979

8080
return trim($definition);

0 commit comments

Comments
 (0)