Passed
Push — master ( cab6b5...845ff4 )
by Bruno
04:13 queued 01:09
created
Modelarium/Laravel/Processor.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @param  string[]  $directiveNamespaces
79 79
      * @return array<string, string>
80 80
      */
81
-    public static function getDirectivesGraphql($directiveNamespaces = [ 'Modelarium\Laravel\Lighthouse\Directives' ]): array
81
+    public static function getDirectivesGraphql($directiveNamespaces = ['Modelarium\Laravel\Lighthouse\Directives']): array
82 82
     {
83 83
         $directives = [];
84 84
 
@@ -88,15 +88,15 @@  discard block
 block discarded – undo
88 88
 
89 89
             foreach ($classesInNamespace as $class) {
90 90
                 $reflection = new \ReflectionClass($class);
91
-                if (! $reflection->isInstantiable()) {
91
+                if (!$reflection->isInstantiable()) {
92 92
                     continue;
93 93
                 }
94 94
 
95
-                if (! is_a($class, \Nuwave\Lighthouse\Schema\Directives\BaseDirective::class, true)) {
95
+                if (!is_a($class, \Nuwave\Lighthouse\Schema\Directives\BaseDirective::class, true)) {
96 96
                     continue;
97 97
                 }
98 98
                 
99
-                $name = DirectiveFactory::directiveName((string)$class);
99
+                $name = DirectiveFactory::directiveName((string) $class);
100 100
                 // @phpstan-ignore-next-line
101 101
                 $directives[$name] = trim($class::definition());
102 102
             }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      * @param  string[]  $directiveNamespaces
112 112
      * @return string
113 113
      */
114
-    public static function getDirectivesGraphqlString($directiveNamespaces = [ 'Modelarium\\Laravel\\Lighthouse\\Directives' ]): string
114
+    public static function getDirectivesGraphqlString($directiveNamespaces = ['Modelarium\\Laravel\\Lighthouse\\Directives']): string
115 115
     {
116 116
         return implode("\n\n", self::getDirectivesGraphql($directiveNamespaces));
117 117
     }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
                     continue;
170 170
                 }
171 171
                 try {
172
-                    $g = $this->processType((string)$name, $object);
172
+                    $g = $this->processType((string) $name, $object);
173 173
                     $this->collection = $this->collection->merge($g);
174 174
                 } catch (SkipGenerationException $e) {
175 175
                     continue;
Please login to merge, or discard this patch.