Test Setup Failed
Push — master ( 27086c...7b1445 )
by Php Easy Api
03:06
created
src/resta/Request/RequestAbstract.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     protected function getAutoGenerators()
33 33
     {
34
-        if(property_exists($this,'auto_generators')){
34
+        if (property_exists($this, 'auto_generators')) {
35 35
             return $this->auto_generators;
36 36
         }
37 37
         return [];
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     protected function getAutoGeneratorsDontOverwrite()
47 47
     {
48
-        if(property_exists($this,'auto_generators_dont_overwrite')){
48
+        if (property_exists($this, 'auto_generators_dont_overwrite')) {
49 49
             return $this->auto_generators_dont_overwrite;
50 50
         }
51 51
         return [];
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     protected function getClientObjects()
61 61
     {
62
-        return array_diff_key($this->getObjects(),['inputs'=>[]]);
62
+        return array_diff_key($this->getObjects(), ['inputs'=>[]]);
63 63
     }
64 64
 
65 65
     /**
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     protected function getGenerators()
71 71
     {
72
-        if(property_exists($this,'generators')){
72
+        if (property_exists($this, 'generators')) {
73 73
             return $this->generators;
74 74
         }
75 75
         return [];
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     protected function getGeneratorsDontOverwrite()
85 85
     {
86
-        if(property_exists($this,'generators_dont_overwrite')){
86
+        if (property_exists($this, 'generators_dont_overwrite')) {
87 87
             return $this->generators_dont_overwrite;
88 88
         }
89 89
         return [];
Please login to merge, or discard this patch.
src/resta/Console/Source/Helper/Helper.php 1 patch
Spacing   +4 added lines, -4 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=['helper'];
35
+    public $commandRule = ['helper'];
36 36
 
37 37
     /**
38 38
      * @return mixed
@@ -40,12 +40,12 @@  discard block
 block discarded – undo
40 40
     public function create()
41 41
     {
42 42
 
43
-        if(!file_exists(app()->path()->helpers())){
44
-            $this->directory['helper']          = app()->path()->helpers();
43
+        if (!file_exists(app()->path()->helpers())) {
44
+            $this->directory['helper'] = app()->path()->helpers();
45 45
             $this->file->makeDirectory($this);
46 46
         }
47 47
 
48
-        $this->touch['helpers/general']= app()->path()->helpers().'/'.ucfirst($this->argument['helper']).'.php';
48
+        $this->touch['helpers/general'] = app()->path()->helpers().'/'.ucfirst($this->argument['helper']).'.php';
49 49
 
50 50
 
51 51
         $this->file->touch($this);
Please login to merge, or discard this patch.
src/resta/Container/ContainerMethodDocumentResolver.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * @param $document
24 24
      * @param array $class
25 25
      */
26
-    public function __construct($app,$document,$class=array())
26
+    public function __construct($app, $document, $class = array())
27 27
     {
28 28
         parent::__construct($app);
29 29
 
@@ -46,25 +46,25 @@  discard block
 block discarded – undo
46 46
 
47 47
         // if you have information about cache in
48 48
         // the document section of the method, the cache process is executed.
49
-        if(is_string($this->document) && preg_match('#@cache\((.*?)\)\r\n#is',$this->document,$cache)){
49
+        if (is_string($this->document) && preg_match('#@cache\((.*?)\)\r\n#is', $this->document, $cache)) {
50 50
 
51 51
             // if the cache information
52 52
             // with regular expression does not contain null data.
53
-            if($cache!==null && isset($cache[1])){
53
+            if ($cache!==null && isset($cache[1])) {
54 54
 
55 55
                 //as static we inject the name value into the cache data.
56 56
                 $cacheData = ['cache'=>['name'=>Utils::encryptArrayData($this->class)]];
57 57
 
58 58
                 //cache data with the help of foreach data are transferred into the cache.
59
-                foreach(array_filter(explode(" ",$cache[1]),'strlen') as $item){
59
+                foreach (array_filter(explode(" ", $cache[1]), 'strlen') as $item) {
60 60
 
61
-                    $items = explode("=",$item);
61
+                    $items = explode("=", $item);
62 62
                     $cacheData['cache'][$items[0]] = $items[1];
63 63
                 }
64 64
             }
65 65
         }
66 66
 
67 67
         //we save the data stored in the cacheData variable as methodCache.
68
-        $this->app->register('containerReflection','methodCache',$cacheData);
68
+        $this->app->register('containerReflection', 'methodCache', $cacheData);
69 69
     }
70 70
 }
71 71
\ No newline at end of file
Please login to merge, or discard this patch.
src/resta/Container/DIContainerManager.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@  discard block
 block discarded – undo
22 22
      * @throws \DI\DependencyException
23 23
      * @throws \DI\NotFoundException
24 24
      */
25
-    public static function resolve($class=null)
25
+    public static function resolve($class = null)
26 26
     {
27 27
         //class resolve
28
-        if(!is_null($class)){
28
+        if (!is_null($class)) {
29 29
             $container = self::callBuild();
30 30
             return $container->get($class);
31 31
         }
@@ -41,12 +41,12 @@  discard block
 block discarded – undo
41 41
      * @throws \DI\DependencyException
42 42
      * @throws \DI\NotFoundException
43 43
      */
44
-    public static function make($class=null, $param=array())
44
+    public static function make($class = null, $param = array())
45 45
     {
46
-        if($class!==null){
46
+        if ($class!==null) {
47 47
 
48 48
             $container = self::callBuild();
49
-            return $container->make($class,$param);
49
+            return $container->make($class, $param);
50 50
         }
51 51
 
52 52
         return null;
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @throws \DI\DependencyException
60 60
      */
61
-    public static function injectOnBind($class=null)
61
+    public static function injectOnBind($class = null)
62 62
     {
63
-        if($class!==null){
63
+        if ($class!==null) {
64 64
 
65 65
             $container = self::callBuild();
66 66
             return $container->injectOn($class);
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
      * @param array $param
75 75
      * @return mixed
76 76
      */
77
-    public static function callBind($class=null, $param=array())
77
+    public static function callBind($class = null, $param = array())
78 78
     {
79
-        return (app()->resolve(ContainerResolve::class))->call($class,$param,function($call){
80
-            return self::callBuild()->call($call->class,$call->param);
79
+        return (app()->resolve(ContainerResolve::class))->call($class, $param, function($call) {
80
+            return self::callBuild()->call($call->class, $call->param);
81 81
         });
82 82
     }
83 83
 }
84 84
\ No newline at end of file
Please login to merge, or discard this patch.
src/resta/Container/RepositoryContainer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,23 +9,23 @@
 block discarded – undo
9 9
      * @param $param
10 10
      * @return mixed
11 11
      */
12
-    public function handle($parameter,$param)
12
+    public function handle($parameter, $param)
13 13
     {
14 14
         // We will use a custom bind for the repository classes
15 15
         // and bind the repository contract with the repository adapter class.
16 16
         $parameterName = $parameter->getType()->getName();
17 17
         $repository = app()->namespace()->repository();
18 18
 
19
-        $parameterNameWord  = str_replace('\\','',$parameterName);
20
-        $repositoryWord     = str_replace('\\','',$repository);
19
+        $parameterNameWord  = str_replace('\\', '', $parameterName);
20
+        $repositoryWord     = str_replace('\\', '', $repository);
21 21
 
22 22
 
23 23
         // if the submitted contract matches the repository class.
24
-        if(preg_match('@'.$repositoryWord.'@is',$parameterNameWord)){
24
+        if (preg_match('@'.$repositoryWord.'@is', $parameterNameWord)) {
25 25
 
26 26
             //we bind the contract as an adapter
27
-            $repositoryName = str_replace('Contract','',$parameter->getName());
28
-            $getRepositoryAdapter = app()->get('appClass')::repository($repositoryName,true);
27
+            $repositoryName = str_replace('Contract', '', $parameter->getName());
28
+            $getRepositoryAdapter = app()->get('appClass')::repository($repositoryName, true);
29 29
 
30 30
             $param[$parameter->getName()] = app()->resolve($getRepositoryAdapter)->adapter();
31 31
         }
Please login to merge, or discard this patch.
src/resta/Console/Source/Token/Token.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * @var $type
15 15
      */
16
-    public $type='token';
16
+    public $type = 'token';
17 17
 
18 18
     /**
19 19
      * @var array
@@ -30,19 +30,19 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * @var $commandRule
32 32
      */
33
-    public $commandRule=['key'];
33
+    public $commandRule = ['key'];
34 34
 
35 35
     /**
36 36
      * @return void
37 37
      */
38
-    public function create(){
38
+    public function create() {
39 39
 
40 40
         //
41 41
         $clientApiToken = StaticPathModel::appMiddlewarePath($this->projectName()).'\\ClientApiToken';
42 42
         $resolveClientApiToken = app()->resolve($clientApiToken);
43 43
 
44 44
         //
45
-        $key=lcfirst($this->argument['key']);
45
+        $key = lcfirst($this->argument['key']);
46 46
 
47 47
         echo $this->info($resolveClientApiToken->createToken($key));
48 48
     }
Please login to merge, or discard this patch.
src/resta/Foundation/PathManager/StaticPathList.php 1 patch
Spacing   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -7,246 +7,246 @@
 block discarded – undo
7 7
     /**
8 8
      * @var string
9 9
      */
10
-    public static $appDefine='src';
10
+    public static $appDefine = 'src';
11 11
 
12 12
     /**
13 13
      * @var string
14 14
      */
15
-    public static $autoloadNamespace='App';
15
+    public static $autoloadNamespace = 'App';
16 16
 
17 17
     /**
18 18
      * @var string
19 19
      */
20
-    public static $projectPrefixGroup='Api';
20
+    public static $projectPrefixGroup = 'Api';
21 21
 
22 22
     /**
23 23
      * @var string
24 24
      */
25
-    public static $methodPrefix='Action';
25
+    public static $methodPrefix = 'Action';
26 26
 
27 27
     /**
28 28
      * @var string
29 29
      */
30
-    public static $callClassPrefix='Controller';
30
+    public static $callClassPrefix = 'Controller';
31 31
 
32 32
     /**
33 33
      * @var string
34 34
      */
35
-    public static $controllerBundleName='';
35
+    public static $controllerBundleName = '';
36 36
 
37 37
     /**
38 38
      * @var string
39 39
      */
40
-    public static $resourceInController='Resource';
40
+    public static $resourceInController = 'Resource';
41 41
 
42 42
     /**
43 43
      * @var string
44 44
      */
45
-    public static $configurationInController='Config';
45
+    public static $configurationInController = 'Config';
46 46
 
47 47
     /**
48 48
      * @var null
49 49
      */
50
-    public static $appPath=null;
50
+    public static $appPath = null;
51 51
 
52 52
     /**
53 53
      * @var string
54 54
      */
55
-    public static $kernel='Kernel';
55
+    public static $kernel = 'Kernel';
56 56
 
57 57
     /**
58 58
      * @var string
59 59
      */
60
-    public static $repository='Repository';
60
+    public static $repository = 'Repository';
61 61
 
62 62
     /**
63 63
      * @var string
64 64
      */
65
-    public static $listener='Listener';
65
+    public static $listener = 'Listener';
66 66
 
67 67
     /**
68 68
      * @var string
69 69
      */
70
-    public static $serviceAnnotations='ServiceAnnotationsManager';
70
+    public static $serviceAnnotations = 'ServiceAnnotationsManager';
71 71
 
72 72
     /**
73 73
      * @var string
74 74
      */
75
-    public static $serviceMiddleware='ServiceMiddlewareManager';
75
+    public static $serviceMiddleware = 'ServiceMiddlewareManager';
76 76
 
77 77
     /**
78 78
      * @var string
79 79
      */
80
-    public static $storage='Storage';
80
+    public static $storage = 'Storage';
81 81
 
82 82
     /**
83 83
      * @var string
84 84
      */
85
-    public static $controller='Controllers';
85
+    public static $controller = 'Controllers';
86 86
 
87 87
     /**
88 88
      * @var string
89 89
      */
90
-    public static $platform='__Platform';
90
+    public static $platform = '__Platform';
91 91
 
92 92
     /**
93 93
      * @var string
94 94
      */
95
-    public static $sourcePath='Source';
95
+    public static $sourcePath = 'Source';
96 96
 
97 97
     /**
98 98
      * @var string
99 99
      */
100
-    public static $sourceRequest='Request';
100
+    public static $sourceRequest = 'Request';
101 101
 
102 102
     /**
103 103
      * @var string
104 104
      */
105
-    public static $model='Model';
105
+    public static $model = 'Model';
106 106
 
107 107
     /**
108 108
      * @var string
109 109
      */
110
-    public static $builder='Builder';
110
+    public static $builder = 'Builder';
111 111
 
112 112
     /**
113 113
      * @var string
114 114
      */
115
-    public static $migration='Migrations';
115
+    public static $migration = 'Migrations';
116 116
 
117 117
     /**
118 118
      * @var string
119 119
      */
120
-    public static $config='Config';
120
+    public static $config = 'Config';
121 121
 
122 122
     /**
123 123
      * @var string
124 124
      */
125
-    public static $helpers='Helpers';
125
+    public static $helpers = 'Helpers';
126 126
 
127 127
     /**
128 128
      * @var string
129 129
      */
130
-    public static $test='Tests';
130
+    public static $test = 'Tests';
131 131
 
132 132
 
133 133
     /**
134 134
      * @var string
135 135
      */
136
-    public static $optional='Optional';
136
+    public static $optional = 'Optional';
137 137
 
138 138
     /**
139 139
      * @var string
140 140
      */
141
-    public static $events='Events';
141
+    public static $events = 'Events';
142 142
 
143 143
     /**
144 144
      * @var string
145 145
      */
146
-    public static $listeners='Listeners';
146
+    public static $listeners = 'Listeners';
147 147
 
148 148
     /**
149 149
      * @var string
150 150
      */
151
-    public static $subscribers='Subscribers';
151
+    public static $subscribers = 'Subscribers';
152 152
 
153 153
     /**
154 154
      * @var string
155 155
      */
156
-    public static $exception='Exceptions';
156
+    public static $exception = 'Exceptions';
157 157
 
158 158
     /**
159 159
      * @var string
160 160
      */
161
-    public static $job='Job';
161
+    public static $job = 'Job';
162 162
 
163 163
 
164 164
     /**
165 165
      * @var string
166 166
      */
167
-    public static $webservice='Webservice';
167
+    public static $webservice = 'Webservice';
168 168
 
169 169
     /**
170 170
      * @var string
171 171
      */
172
-    public static $log='Log';
172
+    public static $log = 'Log';
173 173
 
174 174
     /**
175 175
      * @var string
176 176
      */
177
-    public static $resource='Resource';
177
+    public static $resource = 'Resource';
178 178
 
179 179
     /**
180 180
      * @var string
181 181
      */
182
-    public static $cache='Cache';
182
+    public static $cache = 'Cache';
183 183
 
184 184
     /**
185 185
      * @var string
186 186
      */
187
-    public static $language='Language';
187
+    public static $language = 'Language';
188 188
     /**
189 189
      * @var string
190 190
      */
191
-    public static $session='Session';
191
+    public static $session = 'Session';
192 192
 
193 193
     /**
194 194
      * @var string
195 195
      */
196
-    public static $middleware='Middleware';
196
+    public static $middleware = 'Middleware';
197 197
 
198 198
     /**
199 199
      * @var string
200 200
      */
201
-    public static $route='Routes';
201
+    public static $route = 'Routes';
202 202
 
203 203
     /**
204 204
      * @var string
205 205
      */
206
-    public static $request='Request';
206
+    public static $request = 'Request';
207 207
 
208 208
     /**
209 209
      * @var string
210 210
      */
211
-    public static $factory='Factory';
211
+    public static $factory = 'Factory';
212 212
 
213 213
     /**
214 214
      * @var string
215 215
      */
216
-    public static $node='Node';
216
+    public static $node = 'Node';
217 217
 
218 218
     /**
219 219
      * @var string
220 220
      */
221
-    public static $provider='Providers';
221
+    public static $provider = 'Providers';
222 222
 
223 223
     /**
224 224
      * @var string
225 225
      */
226
-    public static $once='Once';
226
+    public static $once = 'Once';
227 227
 
228 228
     /**
229 229
      * @var string
230 230
      */
231
-    public static $command='Command';
231
+    public static $command = 'Command';
232 232
 
233 233
     /**
234 234
      * @var string
235 235
      */
236
-    public static $stub='Stub';
236
+    public static $stub = 'Stub';
237 237
 
238 238
     /**
239 239
      * @var string
240 240
      */
241
-    public static $store='Store';
241
+    public static $store = 'Store';
242 242
 
243 243
     /**
244 244
      * @var string
245 245
      */
246
-    public static $boot='Boot';
246
+    public static $boot = 'Boot';
247 247
 
248 248
     /**
249 249
      * @var string
250 250
      */
251
-    public static $autoService='Autoservice';
251
+    public static $autoService = 'Autoservice';
252 252
 }
253 253
\ No newline at end of file
Please login to merge, or discard this patch.
src/resta/Foundation/PathManager/StaticPathRepository.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@  discard block
 block discarded – undo
12 12
      * @param null $app
13 13
      * @return string
14 14
      */
15
-    public function app($app=null)
15
+    public function app($app = null)
16 16
     {
17
-        $app=($app===null) ? $this->appDetector() : $app;
17
+        $app = ($app===null) ? $this->appDetector() : $app;
18 18
         return StaticPathModel::appPath().''.DIRECTORY_SEPARATOR.''.Str::slashToBackSlash($app);
19 19
     }
20 20
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      * @param null $app
39 39
      * @return string
40 40
      */
41
-    public function appCall($app=null)
41
+    public function appCall($app = null)
42 42
     {
43 43
         return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$controller;
44 44
     }
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
      * @param null $app
57 57
      * @return string
58 58
      */
59
-    public function appConfig($app=null)
59
+    public function appConfig($app = null)
60 60
     {
61
-        if(isset(core()->paths['config'])){
61
+        if (isset(core()->paths['config'])) {
62 62
             return core()->paths['config'];
63 63
         }
64 64
         return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$config;
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @param null $app
69 69
      * @return string
70 70
      */
71
-    public function appHelpers($app=null)
71
+    public function appHelpers($app = null)
72 72
     {
73 73
         return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$helpers;
74 74
     }
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
      * @param null $app
78 78
      * @return string
79 79
      */
80
-    public function appTests($app=null)
80
+    public function appTests($app = null)
81 81
     {
82
-        $tests     = $this->app().''.DIRECTORY_SEPARATOR.''.StaticPathList::$test;
82
+        $tests = $this->app().''.DIRECTORY_SEPARATOR.''.StaticPathList::$test;
83 83
 
84 84
         return $tests;
85 85
     }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * @param null $app
97 97
      * @return mixed
98 98
      */
99
-    public function appFactory($app=null)
99
+    public function appFactory($app = null)
100 100
     {
101 101
         return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$factory;
102 102
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      */
107 107
     public function appKernel()
108 108
     {
109
-        $kernel     = $this->app().''.DIRECTORY_SEPARATOR.''.StaticPathList::$kernel;
109
+        $kernel = $this->app().''.DIRECTORY_SEPARATOR.''.StaticPathList::$kernel;
110 110
 
111 111
         return $kernel;
112 112
     }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function appProvider()
118 118
     {
119
-        $kernel     = $this->app().''.DIRECTORY_SEPARATOR.''.StaticPathList::$kernel.''.DIRECTORY_SEPARATOR.''.StaticPathList::$provider;
119
+        $kernel = $this->app().''.DIRECTORY_SEPARATOR.''.StaticPathList::$kernel.''.DIRECTORY_SEPARATOR.''.StaticPathList::$provider;
120 120
 
121 121
         return $kernel;
122 122
     }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      * @param null $app
142 142
      * @return mixed
143 143
      */
144
-    public function appLogger($app=null)
144
+    public function appLogger($app = null)
145 145
     {
146 146
         return $this->appVersion($app).''.DIRECTORY_SEPARATOR.'ServiceLogManager';
147 147
     }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      * @param null $app
151 151
      * @return mixed
152 152
      */
153
-    public function appMiddleware($app=null)
153
+    public function appMiddleware($app = null)
154 154
     {
155 155
         return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$middleware;
156 156
     }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      * @param null $app
160 160
      * @return mixed
161 161
      */
162
-    public function appMigration($app=null)
162
+    public function appMigration($app = null)
163 163
     {
164 164
         return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$migration;
165 165
     }
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      * @param null $app
169 169
      * @return mixed
170 170
      */
171
-    public function appModel($app=null)
171
+    public function appModel($app = null)
172 172
     {
173 173
         return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$model;
174 174
     }
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
      * @param null $app
178 178
      * @return mixed
179 179
      */
180
-    public function appException($app=null)
180
+    public function appException($app = null)
181 181
     {
182 182
         return $this->appVersion().''.DIRECTORY_SEPARATOR.''.StaticPathList::$exception;
183 183
     }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      * @param null $app
187 187
      * @return mixed
188 188
      */
189
-    public function appOptionalEvents($app=null)
189
+    public function appOptionalEvents($app = null)
190 190
     {
191 191
         return $this->appVersion().''.DIRECTORY_SEPARATOR.''.StaticPathList::$events;
192 192
     }
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      * @param null $app
196 196
      * @return mixed
197 197
      */
198
-    public function appOptionalJob($app=null)
198
+    public function appOptionalJob($app = null)
199 199
     {
200 200
         return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$optional.''.DIRECTORY_SEPARATOR.''.StaticPathList::$job;
201 201
     }
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      * @param null $app
205 205
      * @return mixed
206 206
      */
207
-    public function appOptionalListeners($app=null)
207
+    public function appOptionalListeners($app = null)
208 208
     {
209 209
         return $this->appVersion().''.DIRECTORY_SEPARATOR.''.StaticPathList::$listeners;
210 210
     }
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      * @param null $app
214 214
      * @return mixed
215 215
      */
216
-    public function appOptionalSubscribers($app=null)
216
+    public function appOptionalSubscribers($app = null)
217 217
     {
218 218
         return $this->appVersion().''.DIRECTORY_SEPARATOR.''.StaticPathList::$listeners.''.DIRECTORY_SEPARATOR.''.StaticPathList::$subscribers;
219 219
     }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      */
232 232
     public function appRepository()
233 233
     {
234
-        $repository     = $this->app().''.DIRECTORY_SEPARATOR.''.StaticPathList::$repository;
234
+        $repository = $this->app().''.DIRECTORY_SEPARATOR.''.StaticPathList::$repository;
235 235
 
236 236
         return $repository;
237 237
     }
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      * @param null $app
249 249
      * @return mixed
250 250
      */
251
-    public function appOptionalSource($app=null)
251
+    public function appOptionalSource($app = null)
252 252
     {
253 253
         return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$optional.''.DIRECTORY_SEPARATOR.''.StaticPathList::$sourcePath;
254 254
     }
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
      * @param null $app
258 258
      * @return mixed
259 259
      */
260
-    public function appOptionalWebservice($app=null)
260
+    public function appOptionalWebservice($app = null)
261 261
     {
262 262
         return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$optional.''.DIRECTORY_SEPARATOR.''.StaticPathList::$webservice;
263 263
     }
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
      * @param null $app
275 275
      * @return mixed
276 276
      */
277
-    public function appServiceAnnotations($app=null)
277
+    public function appServiceAnnotations($app = null)
278 278
     {
279 279
         return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$serviceAnnotations;
280 280
     }
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
      * @param null $app
284 284
      * @return mixed
285 285
      */
286
-    public function appServiceContainer($app=null)
286
+    public function appServiceContainer($app = null)
287 287
     {
288 288
         return $this->appVersion($app).''.DIRECTORY_SEPARATOR.'ServiceContainerController';
289 289
     }
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
      * @param null $app
293 293
      * @return mixed
294 294
      */
295
-    public function appServiceEventDispatcher($app=null)
295
+    public function appServiceEventDispatcher($app = null)
296 296
     {
297 297
         return $this->appVersion($app).''.DIRECTORY_SEPARATOR.'ServiceEventDispatcherManager';
298 298
     }
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
      * @param null $app
302 302
      * @return mixed
303 303
      */
304
-    public function appServiceMiddleware($app=null)
304
+    public function appServiceMiddleware($app = null)
305 305
     {
306 306
         return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$serviceMiddleware;
307 307
     }
@@ -328,9 +328,9 @@  discard block
 block discarded – undo
328 328
      * @param null $app
329 329
      * @return mixed
330 330
      */
331
-    public function appVersion($app=null)
331
+    public function appVersion($app = null)
332 332
     {
333
-        if(defined('app')){
333
+        if (defined('app')) {
334 334
 
335 335
             $prefixGroup = Str::slashToBackSlash(StaticPathList::$projectPrefixGroup);
336 336
 
@@ -374,19 +374,19 @@  discard block
 block discarded – undo
374 374
      * @param bool $bool
375 375
      * @return mixed
376 376
      */
377
-    public function controller($controller=null,$bool=false)
377
+    public function controller($controller = null, $bool = false)
378 378
     {
379 379
         $namespaceController = ($controller===null) ? app()->namespace()->controller()
380
-            : app()->namespace()->controller($controller,true);
380
+            : app()->namespace()->controller($controller, true);
381 381
 
382
-        if($bool){
383
-            $namespaceControllerExplode = explode("\\",$namespaceController);
382
+        if ($bool) {
383
+            $namespaceControllerExplode = explode("\\", $namespaceController);
384 384
             array_pop($namespaceControllerExplode);
385 385
 
386
-            $namespaceController = implode("\\",$namespaceControllerExplode);
386
+            $namespaceController = implode("\\", $namespaceControllerExplode);
387 387
         }
388 388
 
389
-        return Utils::getPathFromNamespace($namespaceController,false);
389
+        return Utils::getPathFromNamespace($namespaceController, false);
390 390
     }
391 391
 
392 392
     /**
@@ -410,9 +410,9 @@  discard block
 block discarded – undo
410 410
      * @param $arg
411 411
      * @return mixed
412 412
      */
413
-    public function __call($name,$arg)
413
+    public function __call($name, $arg)
414 414
     {
415
-        $appCall='app'.ucfirst($name);
415
+        $appCall = 'app'.ucfirst($name);
416 416
         return $this->{$appCall}();
417 417
     }
418 418
 
Please login to merge, or discard this patch.
src/resta/Support/SimpleXmlManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $xml = $this->getXml();
41 41
 
42
-        return json_decode(json_encode((array) $xml), true);
42
+        return json_decode(json_encode((array)$xml), true);
43 43
     }
44 44
 
45 45
     /**
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param array $data
49 49
      * @return string
50 50
      */
51
-    public function toXml($data=array())
51
+    public function toXml($data = array())
52 52
     {
53 53
         return ArrayToXml::convert($data);
54 54
     }
Please login to merge, or discard this patch.