@@ -9,7 +9,7 @@ |
||
9 | 9 | public function filterByType(string $type): GeneratedCollection |
10 | 10 | { |
11 | 11 | return $this->filter( |
12 | - function ($i) use ($type) { |
|
12 | + function($i) use ($type) { |
|
13 | 13 | return $i->type == $type; |
14 | 14 | } |
15 | 15 | ); |
@@ -168,6 +168,6 @@ |
||
168 | 168 | |
169 | 169 | public function getGenerateFilename(string $name): string |
170 | 170 | { |
171 | - return $this->getBasePath('app/Policies/'. Str::studly($name) . 'Policy.php'); |
|
171 | + return $this->getBasePath('app/Policies/' . Str::studly($name) . 'Policy.php'); |
|
172 | 172 | } |
173 | 173 | } |
@@ -106,7 +106,7 @@ |
||
106 | 106 | throw new Exception("Directive $validator does not have argument $argName"); |
107 | 107 | } |
108 | 108 | if ($argValidator->type === 'Int') { |
109 | - $argValue = (int)$argValue; |
|
109 | + $argValue = (int) $argValue; |
|
110 | 110 | } |
111 | 111 | $arguments[$argName] = $argValue; |
112 | 112 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | function datatypes() |
10 | 10 | { |
11 | 11 | $markdown = DatatypeFactory::map( |
12 | - function (\ReflectionClass $reflection): array { |
|
12 | + function(\ReflectionClass $reflection): array { |
|
13 | 13 | $class = $reflection->getName(); |
14 | 14 | |
15 | 15 | /** |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $files = $processor->getCollection(); |
92 | 92 | if ($name && $name !== '*' && $name !== 'all') { |
93 | 93 | $files = $files->filter( |
94 | - function (GeneratedItem $g) use ($name) { |
|
94 | + function(GeneratedItem $g) use ($name) { |
|
95 | 95 | if (is_array($name)) { |
96 | 96 | throw new \Exception('Arrays not supported yet'); |
97 | 97 | } else { |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | $this->writeFiles( |
105 | 105 | $files, |
106 | 106 | base_path(), |
107 | - (bool)$this->option('overwrite') |
|
107 | + (bool) $this->option('overwrite') |
|
108 | 108 | ); |
109 | 109 | $this->info('Finished scaffolding. You might want to run `composer dump-autoload`'); |
110 | 110 | } |
@@ -68,7 +68,7 @@ |
||
68 | 68 | |
69 | 69 | // get the title field |
70 | 70 | $titleField = $targetModel->firstField( |
71 | - function (Field $field) { |
|
71 | + function(Field $field) { |
|
72 | 72 | return $field->getRenderable('title', false); |
73 | 73 | } |
74 | 74 | ); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | MigrationGenerator $generator, |
15 | 15 | \GraphQL\Language\AST\DirectiveNode $directive |
16 | 16 | ): void { |
17 | - $generator->createCode[] ='$table->softDeletes();'; |
|
17 | + $generator->createCode[] = '$table->softDeletes();'; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | public static function processMigrationFieldDirective( |
@@ -14,7 +14,7 @@ |
||
14 | 14 | MigrationGenerator $generator, |
15 | 15 | \GraphQL\Language\AST\DirectiveNode $directive |
16 | 16 | ): void { |
17 | - $generator->createCode[] ='$table->timestamps();'; |
|
17 | + $generator->createCode[] = '$table->timestamps();'; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | public static function processMigrationFieldDirective( |
@@ -15,7 +15,7 @@ |
||
15 | 15 | \GraphQL\Language\AST\DirectiveNode $directive |
16 | 16 | ): void { |
17 | 17 | /** @phpstan-ignore-next-line */ |
18 | - $generator->createCode[] = '$table->spatialIndex("' . $directive->arguments[0]->value->value .'");'; |
|
18 | + $generator->createCode[] = '$table->spatialIndex("' . $directive->arguments[0]->value->value . '");'; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | public static function processMigrationFieldDirective( |