Test Setup Failed
Push — master ( 10db8d...a0b736 )
by Php Easy Api
04:41
created
src/resta/Console/ConsoleCommandList.php 1 patch
Spacing   +11 added lines, -12 removed lines patch added patch discarded remove patch
@@ -15,25 +15,24 @@  discard block
 block discarded – undo
15 15
     {
16 16
         $getCommandList = app()->commandList();
17 17
 
18
-        $this->table->setHeaders(['command','project','params','description']);
18
+        $this->table->setHeaders(['command', 'project', 'params', 'description']);
19 19
 
20 20
         $app = $this;
21 21
 
22
-        foreach ($getCommandList as $command=>$runnable){
22
+        foreach ($getCommandList as $command=>$runnable) {
23 23
 
24
-            $commandInstance = app()->resolve($command,['argument'=>[]]);
24
+            $commandInstance = app()->resolve($command, ['argument'=>[]]);
25 25
 
26 26
             $className = class_basename($commandInstance);
27 27
 
28
-            ClosureDispatcher::bind($commandInstance)->call(function() use($app,$className)
28
+            ClosureDispatcher::bind($commandInstance)->call(function() use($app, $className)
29 29
             {
30
-                if(isset($this->runnableMethods)){
30
+                if (isset($this->runnableMethods)) {
31 31
 
32
-                    foreach ($this->runnableMethods as $method=>$description){
32
+                    foreach ($this->runnableMethods as $method=>$description) {
33 33
 
34 34
                         $commandRule = (isset($this->commandRule[$method])) ?
35
-                            $app->methodCommandRule($this->commandRule[$method]) :
36
-                            $app->methodCommandRule($this->commandRule);
35
+                            $app->methodCommandRule($this->commandRule[$method]) : $app->methodCommandRule($this->commandRule);
37 36
 
38 37
                         $projectStatus = (isset($this->projectStatus)) ? 'YES' : 'NO';
39 38
 
@@ -61,18 +60,18 @@  discard block
 block discarded – undo
61 60
     public function methodCommandRule($commandRule)
62 61
     {
63 62
 
64
-        if(is_array($commandRule)){
63
+        if (is_array($commandRule)) {
65 64
 
66 65
             $list = [];
67 66
 
68
-            foreach ($commandRule as $rule){
69
-                if(!is_array($rule)){
67
+            foreach ($commandRule as $rule) {
68
+                if (!is_array($rule)) {
70 69
                     $list[] = $rule.':['.$rule.']';
71 70
                 }
72 71
 
73 72
             }
74 73
 
75
-            return implode(" ",$list);
74
+            return implode(" ", $list);
76 75
         }
77 76
 
78 77
         return '['.$commandRule.']';
Please login to merge, or discard this patch.