Passed
Push — master ( 46e361...6daab3 )
by Bruno
09:42
created
Modelarium/Laravel/Processor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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, Directive::class, true)) {
85
+                if (!is_a($class, Directive::class, true)) {
86 86
                     continue;
87 87
                 }
88 88
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.