Test Failed
Push — master ( e00988...ebb08c )
by Php Easy Api
04:02
created
src/resta/Console/Source/Client/Client.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * @var array
34 34
      */
35
-    public $commandRule=['name','client'];
35
+    public $commandRule = ['name', 'client'];
36 36
 
37 37
     /**
38 38
      * @method create
@@ -56,35 +56,35 @@  discard block
 block discarded – undo
56 56
 
57 57
         $this->argument['managerTraitNamespace'] = Utils::getNamespace($this->directory['clientNameDir'].'/'.$name.'Trait.php');
58 58
 
59
-        if(!file_exists($manager = $this->directory['clientNameDir'].'/'.$name.'Manager.php')){
59
+        if (!file_exists($manager = $this->directory['clientNameDir'].'/'.$name.'Manager.php')) {
60 60
             $this->touch['client/manager'] = $manager;
61 61
             $this->touch['client/managertrait'] = $this->directory['clientNameDir'].'/'.$name.'Trait.php';
62 62
             
63 63
         }
64 64
 
65
-        if(isset($this->argument['trait'])){
65
+        if (isset($this->argument['trait'])) {
66 66
             $this->argument['name'] = $this->argument['trait'];
67 67
             
68
-            if(!file_exists($managerCustomTrait = $this->directory['clientNameDir'].'/'.$this->argument['trait'].'Trait.php')){
68
+            if (!file_exists($managerCustomTrait = $this->directory['clientNameDir'].'/'.$this->argument['trait'].'Trait.php')) {
69 69
                 $this->touch['client/managercustomtrait'] = $managerCustomTrait;
70 70
             }
71 71
 
72 72
             $this->argument['managerTraitNamespace'] = Utils::getNamespace($managerCustomTrait);
73 73
         }
74 74
 
75
-        if(!file_exists($this->directory['clientNameCreate'].'/Client.php')){
75
+        if (!file_exists($this->directory['clientNameCreate'].'/Client.php')) {
76 76
             $this->touch['client/client'] = $this->directory['clientNameCreate'].'/Client.php';
77 77
             $this->touch['client/clientGenerator'] = $this->directory['clientNameCreate'].'/ClientGenerator.php';
78 78
         }
79 79
 
80 80
         $clientSourceNamespace = Utils::getNamespace($this->directory['clientSource'].'/'.$client.'.php');
81 81
 
82
-        if(!file_exists($clientSourceName = $this->directory['clientSource'].'/'.$client.'.php')){
82
+        if (!file_exists($clientSourceName = $this->directory['clientSource'].'/'.$client.'.php')) {
83 83
             $this->touch['client/source'] = $clientSourceName.'';
84 84
         }
85 85
         
86 86
 
87
-        if(!file_exists($this->directory['clientNameCreate'].'/ClientProvider.php')){
87
+        if (!file_exists($this->directory['clientNameCreate'].'/ClientProvider.php')) {
88 88
             $this->touch['client/clientProvider'] = $this->directory['clientNameCreate'].'/ClientProvider.php';
89 89
         }
90 90
 
@@ -98,13 +98,13 @@  discard block
 block discarded – undo
98 98
 
99 99
         $nameGeneratorNamespace = Utils::getNamespace($managerPath = $this->directory['clientNameDir'].''.DIRECTORY_SEPARATOR.''.$nameManager.'.php');
100 100
 
101
-        $generator = new Generator(path()->version(),'ClientManager');
101
+        $generator = new Generator(path()->version(), 'ClientManager');
102 102
 
103 103
         $clientManager = app()->namespace()->version().'\\ClientManager';
104 104
 
105 105
         $clientManagerResolve = new $clientManager;
106 106
 
107
-        if(!method_exists($clientManagerResolve,strtolower($name))){
107
+        if (!method_exists($clientManagerResolve, strtolower($name))) {
108 108
 
109 109
             $generator->createMethod([
110 110
                 strtolower($name)
@@ -135,11 +135,11 @@  discard block
 block discarded – undo
135 135
 
136 136
         }
137 137
 
138
-        $nameGenerator = new Generator($this->directory['clientNameDir'],$name.'Manager');
138
+        $nameGenerator = new Generator($this->directory['clientNameDir'], $name.'Manager');
139 139
 
140 140
         $nameGeneratorNamespaceResolve = new $nameGeneratorNamespace;
141 141
 
142
-        if(!method_exists($nameGeneratorNamespaceResolve,strtolower($client))){
142
+        if (!method_exists($nameGeneratorNamespaceResolve, strtolower($client))) {
143 143
 
144 144
             $nameGenerator->createMethod([
145 145
                 strtolower($client)
Please login to merge, or discard this patch.