@@ -109,7 +109,7 @@ |
||
| 109 | 109 | $processor->getCollection(), |
| 110 | 110 | // @phpstan-ignore-next-line |
| 111 | 111 | base_path(), |
| 112 | - (bool)$this->option('overwrite') |
|
| 112 | + (bool) $this->option('overwrite') |
|
| 113 | 113 | ); |
| 114 | 114 | |
| 115 | 115 | $this->info('Finished. You might want to run `composer dump-autoload`'); |
@@ -168,7 +168,7 @@ |
||
| 168 | 168 | |
| 169 | 169 | public function generateString(): string |
| 170 | 170 | { |
| 171 | - return $this->stubToString('modelbase', function ($stub) { |
|
| 171 | + return $this->stubToString('modelbase', function($stub) { |
|
| 172 | 172 | $db = []; |
| 173 | 173 | |
| 174 | 174 | foreach ($this->type->getFields() as $field) { |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | public function generate(): GeneratedCollection |
| 11 | 11 | { |
| 12 | 12 | return new GeneratedCollection( |
| 13 | - [ new GeneratedItem( |
|
| 13 | + [new GeneratedItem( |
|
| 14 | 14 | GeneratedItem::TYPE_FACTORY, |
| 15 | 15 | $this->generateString(), |
| 16 | 16 | $this->getGenerateFilename() |
@@ -25,6 +25,6 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | public function getGenerateFilename(): string |
| 27 | 27 | { |
| 28 | - return $this->getBasePath('database/factories/'. $this->studlyName . 'Factory.php'); |
|
| 28 | + return $this->getBasePath('database/factories/' . $this->studlyName . 'Factory.php'); |
|
| 29 | 29 | } |
| 30 | 30 | } |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | if ($name === 'Mutation') { |
| 116 | 116 | continue; |
| 117 | 117 | } |
| 118 | - $g = $this->processType((string)$name, $object); |
|
| 118 | + $g = $this->processType((string) $name, $object); |
|
| 119 | 119 | $this->collection = $this->collection->merge($g); |
| 120 | 120 | } |
| 121 | 121 | } |