Completed
Push — master ( 3c7bbd...d8a956 )
by
unknown
18s queued 14s
created
src/Commands/Actions/ListCommands.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         $groupedCommands = [];
30 30
         foreach ($commands as $command) {
31 31
             $directory = $this->getDirectoryFromNamespace($command['namespace']);
32
-            if (! isset($groupedCommands[$directory])) {
32
+            if (!isset($groupedCommands[$directory])) {
33 33
                 $groupedCommands[$directory] = [];
34 34
             }
35 35
             $groupedCommands[$directory][] = $command;
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         ];
70 70
 
71 71
         foreach ($possiblePaths as $path) {
72
-            if (! is_dir($path)) {
72
+            if (!is_dir($path)) {
73 73
                 continue;
74 74
             }
75 75
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
             // Extract the short class name from the fully qualified class name
136 136
             $shortClassName = $this->getShortClassName($className);
137 137
 
138
-            if (! class_exists($className)) {
138
+            if (!class_exists($className)) {
139 139
                 return [
140 140
                     'class' => $className,
141 141
                     'name' => $shortClassName,
@@ -146,13 +146,13 @@  discard block
 block discarded – undo
146 146
             $reflection = new ReflectionClass($className);
147 147
 
148 148
             // Skip if not a command class
149
-            if (! $reflection->isSubclassOf(SymfonyCommand::class) &&
150
-                ! $reflection->isSubclassOf('Illuminate\Console\Command')) {
149
+            if (!$reflection->isSubclassOf(SymfonyCommand::class) &&
150
+                !$reflection->isSubclassOf('Illuminate\Console\Command')) {
151 151
                 return null;
152 152
             }
153 153
 
154 154
             // Skip if the class is not instantiable or has required constructor parameters
155
-            if (! $reflection->isInstantiable() || $reflection->getConstructor()?->getNumberOfRequiredParameters() > 0) {
155
+            if (!$reflection->isInstantiable() || $reflection->getConstructor()?->getNumberOfRequiredParameters() > 0) {
156 156
                 return [
157 157
                     'class' => $className,
158 158
                     'name' => $shortClassName,
Please login to merge, or discard this patch.