Passed
Push — master ( 845ff4...7a0761 )
by Bruno
03:38
created
Modelarium/Laravel/Processor.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      * @param  string[]  $directiveNamespaces
78 78
      * @return array<string, string>
79 79
      */
80
-    public static function getDirectivesGraphql($directiveNamespaces = [ 'Modelarium\Laravel\Lighthouse\Directives' ]): array
80
+    public static function getDirectivesGraphql($directiveNamespaces = ['Modelarium\Laravel\Lighthouse\Directives']): array
81 81
     {
82 82
         $directives = [];
83 83
 
@@ -87,15 +87,15 @@  discard block
 block discarded – undo
87 87
 
88 88
             foreach ($classesInNamespace as $class) {
89 89
                 $reflection = new \ReflectionClass($class);
90
-                if (! $reflection->isInstantiable()) {
90
+                if (!$reflection->isInstantiable()) {
91 91
                     continue;
92 92
                 }
93 93
 
94
-                if (! is_a($class, \Nuwave\Lighthouse\Schema\Directives\BaseDirective::class, true)) {
94
+                if (!is_a($class, \Nuwave\Lighthouse\Schema\Directives\BaseDirective::class, true)) {
95 95
                     continue;
96 96
                 }
97 97
                 
98
-                $name = DirectiveFactory::directiveName((string)$class);
98
+                $name = DirectiveFactory::directiveName((string) $class);
99 99
                 // @phpstan-ignore-next-line
100 100
                 $directives[$name] = trim($class::definition());
101 101
             }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      * @param  string[]  $directiveNamespaces
111 111
      * @return string
112 112
      */
113
-    public static function getDirectivesGraphqlString($directiveNamespaces = [ 'Modelarium\\Laravel\\Lighthouse\\Directives' ]): string
113
+    public static function getDirectivesGraphqlString($directiveNamespaces = ['Modelarium\\Laravel\\Lighthouse\\Directives']): string
114 114
     {
115 115
         return implode("\n\n", self::getDirectivesGraphql($directiveNamespaces));
116 116
     }
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
                 if ($name === 'Query' || $name === 'Mutation' || $name === 'Subscription' || $name === 'Can') {
168 168
                     continue;
169 169
                 }
170
-                $g = $this->processType((string)$name, $object);
170
+                $g = $this->processType((string) $name, $object);
171 171
                 $this->collection = $this->collection->merge($g);
172 172
             }
173 173
         }
Please login to merge, or discard this patch.
util/CreateDirective.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         'implements' => implode(
23 23
             ', ',
24 24
             array_map(
25
-                function ($i) {
25
+                function($i) {
26 26
                     return Str::studly($i) . 'DirectiveInterface';
27 27
                 },
28 28
                 $processors
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 }
61 61
 
62 62
 // Script example.php
63
-$longopts  = array(
63
+$longopts = array(
64 64
     "name:",
65 65
     "processors:"
66 66
 );
Please login to merge, or discard this patch.