@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * @param string[] $directiveNamespaces |
| 75 | 75 | * @return array<string, string> |
| 76 | 76 | */ |
| 77 | - public static function getDirectivesGraphql($directiveNamespaces = [ 'Modelarium\Laravel\Lighthouse\Directives' ]): array |
|
| 77 | + public static function getDirectivesGraphql($directiveNamespaces = ['Modelarium\Laravel\Lighthouse\Directives']): array |
|
| 78 | 78 | { |
| 79 | 79 | $directives = []; |
| 80 | 80 | |
@@ -84,15 +84,15 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | foreach ($classesInNamespace as $class) { |
| 86 | 86 | $reflection = new \ReflectionClass($class); |
| 87 | - if (! $reflection->isInstantiable()) { |
|
| 87 | + if (!$reflection->isInstantiable()) { |
|
| 88 | 88 | continue; |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | - if (! is_a($class, \Nuwave\Lighthouse\Schema\Directives\BaseDirective::class, true)) { |
|
| 91 | + if (!is_a($class, \Nuwave\Lighthouse\Schema\Directives\BaseDirective::class, true)) { |
|
| 92 | 92 | continue; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | - $name = DirectiveFactory::directiveName((string)$class); |
|
| 95 | + $name = DirectiveFactory::directiveName((string) $class); |
|
| 96 | 96 | $directives[$name] = trim($class::definition()); |
| 97 | 97 | } |
| 98 | 98 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | * @param string[] $directiveNamespaces |
| 107 | 107 | * @return string |
| 108 | 108 | */ |
| 109 | - public static function getDirectivesGraphqlString($directiveNamespaces = [ 'Modelarium\\Laravel\\Lighthouse\\Directives' ]): string |
|
| 109 | + public static function getDirectivesGraphqlString($directiveNamespaces = ['Modelarium\\Laravel\\Lighthouse\\Directives']): string |
|
| 110 | 110 | { |
| 111 | 111 | return implode("\n\n", self::getDirectivesGraphql($directiveNamespaces)); |
| 112 | 112 | } |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | if ($name === 'Mutation') { |
| 167 | 167 | continue; |
| 168 | 168 | } |
| 169 | - $g = $this->processType((string)$name, $object); |
|
| 169 | + $g = $this->processType((string) $name, $object); |
|
| 170 | 170 | $this->collection = $this->collection->merge($g); |
| 171 | 171 | } |
| 172 | 172 | } |