@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * @param string[] $directiveNamespaces |
69 | 69 | * @return array<string, string> |
70 | 70 | */ |
71 | - public static function getDirectivesGraphql($directiveNamespaces = [ __DIR__ . 'Lighthouse/Directives' ]): array |
|
71 | + public static function getDirectivesGraphql($directiveNamespaces = [__DIR__ . 'Lighthouse/Directives']): array |
|
72 | 72 | { |
73 | 73 | $directives = []; |
74 | 74 | |
@@ -78,11 +78,11 @@ discard block |
||
78 | 78 | |
79 | 79 | foreach ($classesInNamespace as $class) { |
80 | 80 | $reflection = new \ReflectionClass($class); |
81 | - if (! $reflection->isInstantiable()) { |
|
81 | + if (!$reflection->isInstantiable()) { |
|
82 | 82 | continue; |
83 | 83 | } |
84 | 84 | |
85 | - if (! is_a($class, \Nuwave\Lighthouse\Schema\Directives\BaseDirective::class, true)) { |
|
85 | + if (!is_a($class, \Nuwave\Lighthouse\Schema\Directives\BaseDirective::class, true)) { |
|
86 | 86 | continue; |
87 | 87 | } |
88 | 88 | |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | * @param string[] $directiveNamespaces |
101 | 101 | * @return string |
102 | 102 | */ |
103 | - public static function getDirectivesGraphqlString($directiveNamespaces = [ __DIR__ . 'Lighthouse/Directives' ]): string |
|
103 | + public static function getDirectivesGraphqlString($directiveNamespaces = [__DIR__ . 'Lighthouse/Directives']): string |
|
104 | 104 | { |
105 | 105 | return implode(self::getDirectivesGraphql($directiveNamespaces)); |
106 | 106 | } |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | if ($name === 'Mutation') { |
161 | 161 | continue; |
162 | 162 | } |
163 | - $g = $this->processType((string)$name, $object); |
|
163 | + $g = $this->processType((string) $name, $object); |
|
164 | 164 | $this->collection = $this->collection->merge($g); |
165 | 165 | } |
166 | 166 | } |
@@ -115,7 +115,7 @@ |
||
115 | 115 | $this->writeFiles( |
116 | 116 | $processor->getCollection(), |
117 | 117 | base_path(), |
118 | - (bool)$this->option('overwrite') |
|
118 | + (bool) $this->option('overwrite') |
|
119 | 119 | ); |
120 | 120 | $this->info('Finished. You might want to run `composer dump-autoload`'); |
121 | 121 | } |