Test Failed
Push — master ( c64316...9d81b7 )
by Php Easy Api
04:34
created
src/resta/Router/CheckEndpointForAutoService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      * @param callable|null $func
12 12
      * @return string
13 13
      */
14
-    public function getNamespaceForAutoService($instance,callable $func = null)
14
+    public function getNamespaceForAutoService($instance, callable $func = null)
15 15
     {
16 16
         //get namespace for auto service
17 17
         $autoServiceNamespace = $instance->autoService();
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         $configAutoServices = config('autoservices');
22 22
 
23 23
         //auto service is invoked if auto service is allowed for any class yada config.
24
-        if(class_exists($autoServiceNamespace) && $configAutoServices[strtolower(endpoint)]){
24
+        if (class_exists($autoServiceNamespace) && $configAutoServices[strtolower(endpoint)]) {
25 25
             return $autoServiceNamespace;
26 26
         }
27 27
 
Please login to merge, or discard this patch.
src/resta/Router/RouteWatch.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@
 block discarded – undo
12 12
      */
13 13
     public function watch(callable $callback)
14 14
     {
15
-        if(config('app.watch')){
15
+        if (config('app.watch')) {
16 16
 
17 17
             // the memory usage component provides
18 18
             // a way to profile code.
19 19
             $memoryUsage = memory_get_usage();
20 20
 
21 21
             //get controller output
22
-            $controllerOutput=call_user_func($callback);
22
+            $controllerOutput = call_user_func($callback);
23 23
 
24 24
             //save to kernel for a variable named controller Watch
25
-            $this->app->register('controllerWatch', 'memory',memory_get_usage() - $memoryUsage);
25
+            $this->app->register('controllerWatch', 'memory', memory_get_usage()-$memoryUsage);
26 26
         }
27 27
 
28 28
         // if watch config is true; in this case
Please login to merge, or discard this patch.
src/resta/Router/Route.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -203,8 +203,7 @@
 block discarded – undo
203 203
                 if(file_exists($routeMapper) && !isset(static::$paths[$routeMapper])){
204 204
                     static::$paths[$routeMapper] = $routeDefinitor['controllerPath'];
205 205
                 }
206
-            }
207
-            else{
206
+            } else{
208 207
 
209 208
                 // if there is no endpoint,
210 209
                 // all files in the path of the route are transferred to path.
Please login to merge, or discard this patch.
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
      * @param $urlRoute
44 44
      * @return int|string
45 45
      */
46
-    public static function checkArrayEqual($patterns,$urlRoute)
46
+    public static function checkArrayEqual($patterns, $urlRoute)
47 47
     {
48 48
         // calculates the equality difference between
49 49
         // the route pattern and the urlRoute value.
50
-        foreach ($patterns as $key=>$pattern){
50
+        foreach ($patterns as $key=>$pattern) {
51 51
 
52
-            if(Utils::isArrayEqual($pattern,$urlRoute)){
52
+            if (Utils::isArrayEqual($pattern, $urlRoute)) {
53 53
                 return $key;
54 54
             }
55 55
         }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     {
69 69
         $route = self::getRouteResolve();
70 70
 
71
-        if(isset($route['class'])){
71
+        if (isset($route['class'])) {
72 72
             return $route['class'];
73 73
         }
74 74
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     {
85 85
         $route = self::getRouteResolve();
86 86
 
87
-        if(isset($route['method'])){
87
+        if (isset($route['method'])) {
88 88
             return $route['method'];
89 89
         }
90 90
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     {
101 101
         $route = self::getRouteResolve();
102 102
 
103
-        if(isset($route['controller'],$route['namespace'])){
103
+        if (isset($route['controller'], $route['namespace'])) {
104 104
             return $route['controller'].'/'.$route['namespace'];
105 105
         }
106 106
 
@@ -117,17 +117,17 @@  discard block
 block discarded – undo
117 117
         // get routes data and the resolving pattern
118 118
         // Both are interrelated.
119 119
         $routes = self::getRoutes();
120
-        $patternResolve = app()->resolve(RouteMatching::class,['route'=>new self()])->getPatternResolve();
120
+        $patternResolve = app()->resolve(RouteMatching::class, ['route'=>new self()])->getPatternResolve();
121 121
 
122 122
         // we set the route variables for the route assistant.
123 123
         self::updateRouteParameters($patternResolve);
124 124
 
125 125
         //if routes data is available in pattern resolve.
126
-        if(isset($routes['data'][$patternResolve])){
126
+        if (isset($routes['data'][$patternResolve])) {
127 127
 
128 128
             // if the incoming http value is
129 129
             // the same as the real request method, the data is processed.
130
-            if($routes['data'][$patternResolve]['http'] == strtolower(httpMethod)){
130
+            if ($routes['data'][$patternResolve]['http']==strtolower(httpMethod)) {
131 131
 
132 132
                 // we are set the solved pattern to a variable.
133 133
                 $resolve = $routes['data'][$patternResolve];
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                     'http'          => httpMethod(),
141 141
                 ];
142 142
 
143
-                app()->register('routeResolvedData',$routeResolvedData);
143
+                app()->register('routeResolvedData', $routeResolvedData);
144 144
 
145 145
                 return $routeResolvedData;
146 146
             }
@@ -159,22 +159,22 @@  discard block
 block discarded – undo
159 159
     {
160 160
         $list = [];
161 161
 
162
-        if(isset(static::$routes['pattern'][$patternResolvedKey])){
162
+        if (isset(static::$routes['pattern'][$patternResolvedKey])) {
163 163
 
164 164
             $routeParameters = static::$routes['pattern'][$patternResolvedKey];
165 165
             $route = route();
166 166
 
167
-            foreach($routeParameters as $key=>$param){
167
+            foreach ($routeParameters as $key=>$param) {
168 168
 
169
-                $param = Str::replaceWordArray(['{','}','?'],'',$param);
169
+                $param = Str::replaceWordArray(['{', '}', '?'], '', $param);
170 170
 
171
-                if(isset($route[$key])){
171
+                if (isset($route[$key])) {
172 172
                     $list[$param] = $route[$key];
173 173
                 }
174 174
             }
175 175
         }
176 176
 
177
-        app()->register('routeParams',$list);
177
+        app()->register('routeParams', $list);
178 178
     }
179 179
 
180 180
     /**
@@ -182,11 +182,11 @@  discard block
 block discarded – undo
182 182
      *
183 183
      * @param bool $endpoint
184 184
      */
185
-    public function handle($endpoint=true)
185
+    public function handle($endpoint = true)
186 186
     {
187 187
         // we will record the path data for the route.
188 188
         // We set the routeMapper variables and the route path.
189
-        self::setPath(function(){
189
+        self::setPath(function() {
190 190
 
191 191
             // we are sending
192 192
             // the controller and routes.php path.
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 
199 199
         // in the paths data,
200 200
         // we run the route mapper values ​​and the route files one by one.
201
-        foreach (self::$paths as $mapper=>$controller){
201
+        foreach (self::$paths as $mapper=>$controller) {
202 202
             core()->fileSystem->callFile($mapper);
203 203
         }
204 204
     }
@@ -209,11 +209,11 @@  discard block
 block discarded – undo
209 209
      * @param callable $callback
210 210
      * @param bool $endpoint
211 211
      */
212
-    public static function setPath(callable $callback,$endpoint=true)
212
+    public static function setPath(callable $callback, $endpoint = true)
213 213
     {
214 214
         $routeDefinitor = call_user_func($callback);
215 215
 
216
-        if(isset($routeDefinitor['controllerPath']) && isset($routeDefinitor['routePath'])){
216
+        if (isset($routeDefinitor['controllerPath']) && isset($routeDefinitor['routePath'])) {
217 217
 
218 218
             //the route paths to be saved to the mappers static property.
219 219
             static::$mappers['routePaths'][] = $routeDefinitor['routePath'];
@@ -221,22 +221,22 @@  discard block
 block discarded – undo
221 221
 
222 222
             // if there is endpoint,
223 223
             // then only that endpoint is transferred into the path
224
-            if(defined('endpoint') && $endpoint){
224
+            if (defined('endpoint') && $endpoint) {
225 225
 
226 226
                 $routeName      = endpoint.'Route.php';
227 227
                 $routeMapper    = $routeDefinitor['routePath'].''.DIRECTORY_SEPARATOR.''.$routeName;
228 228
 
229
-                if(file_exists($routeMapper) && !isset(static::$paths[$routeMapper])){
229
+                if (file_exists($routeMapper) && !isset(static::$paths[$routeMapper])) {
230 230
                     static::$paths[$routeMapper] = $routeDefinitor['controllerPath'];
231 231
                 }
232 232
             }
233
-            else{
233
+            else {
234 234
 
235 235
                 // if there is no endpoint,
236 236
                 // all files in the path of the route are transferred to path.
237 237
                 $allFilesInThatRoutePath = Utils::glob($routeDefinitor['routePath']);
238 238
 
239
-                foreach ($allFilesInThatRoutePath as $item){
239
+                foreach ($allFilesInThatRoutePath as $item) {
240 240
                     static::$paths[$item] = $routeDefinitor['controllerPath'];
241 241
                 }
242 242
             }
@@ -250,13 +250,13 @@  discard block
 block discarded – undo
250 250
      * @param $function
251 251
      * @param null $controller
252 252
      */
253
-    public static function setRoute($params,$function,$controller=null)
253
+    public static function setRoute($params, $function, $controller = null)
254 254
     {
255
-        [$pattern,$route]   = $params;
256
-        [$class,$method]    = explode("@",$route);
255
+        [$pattern, $route]   = $params;
256
+        [$class, $method]    = explode("@", $route);
257 257
 
258 258
         $patternList = array_values(
259
-            array_filter(explode("/",$pattern),'strlen')
259
+            array_filter(explode("/", $pattern), 'strlen')
260 260
         );
261 261
 
262 262
         static::$routes['pattern'][] = $patternList;
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
             'http'          => $function,
267 267
             'controller'    => $controller,
268 268
             'namespace'     => static::$namespace,
269
-            'endpoint'      => strtolower(str_replace(StaticPathList::$controllerBundleName,'',static::$namespace))
269
+            'endpoint'      => strtolower(str_replace(StaticPathList::$controllerBundleName, '', static::$namespace))
270 270
         ];
271 271
     }
272 272
 
@@ -276,11 +276,11 @@  discard block
 block discarded – undo
276 276
      * @param null $value
277 277
      * @return bool
278 278
      */
279
-    public static function isMatchVaribleRegexPattern($value=null)
279
+    public static function isMatchVaribleRegexPattern($value = null)
280 280
     {
281 281
         // determines if the variable that can be used
282 282
         // in the route file meets the regex rule.
283
-        return (preg_match('@\{(.*?)\}@is',$value)) ? true : false;
283
+        return (preg_match('@\{(.*?)\}@is', $value)) ? true : false;
284 284
     }
285 285
 
286 286
 
@@ -290,11 +290,11 @@  discard block
 block discarded – undo
290 290
      * @param null $value
291 291
      * @return bool
292 292
      */
293
-    public static function isOptionalVaribleRegexPattern($value=null)
293
+    public static function isOptionalVaribleRegexPattern($value = null)
294 294
     {
295 295
         // determines if the variable that can be used
296 296
         // in the route file meets the regex rule.
297
-        return preg_match('@\{[a-z]+\?\}@is',$value) ? true : false;
297
+        return preg_match('@\{[a-z]+\?\}@is', $value) ? true : false;
298 298
     }
299 299
 
300 300
     /**
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
         $application->loadIfNotExistBoot(['middleware']);
320 320
         $middlewareProvider = $application['middleware'];
321 321
 
322
-        foreach($routeData as $key=>$data) {
322
+        foreach ($routeData as $key=>$data) {
323 323
 
324 324
             $middlewareProvider->setKeyOdds('endpoint', $data['endpoint']);
325 325
             $middlewareProvider->setKeyOdds('method', $data['method']);
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
             $afterMiddleware = $middlewareProvider->getShow();
333 333
 
334 334
             $endpoint = $data['endpoint'];
335
-            $controllerNamespace = Utils::getNamespace($data['controller'] . '/' . $data['namespace'] . '/' . $data['class']);
335
+            $controllerNamespace = Utils::getNamespace($data['controller'].'/'.$data['namespace'].'/'.$data['class']);
336 336
 
337 337
             $methodDocument = app()['reflection']($controllerNamespace)->reflectionMethodParams($data['method'])->document;
338 338
 
@@ -344,11 +344,11 @@  discard block
 block discarded – undo
344 344
                 }
345 345
             }
346 346
 
347
-            $mappings[$key]['endpoint'] = $endpoint . '/' . implode("/", $routePattern[$key]);
347
+            $mappings[$key]['endpoint'] = $endpoint.'/'.implode("/", $routePattern[$key]);
348 348
             $mappings[$key]['http'] = $data['http'];
349 349
             $mappings[$key]['definition'] = $methodDefinition;
350
-            $mappings[$key]['before'] = implode(",",$beforeMiddleware);
351
-            $mappings[$key]['after'] = implode(",",$afterMiddleware);
350
+            $mappings[$key]['before'] = implode(",", $beforeMiddleware);
351
+            $mappings[$key]['after'] = implode(",", $afterMiddleware);
352 352
             $mappings[$key]['doc'] = 'not available';
353 353
 
354 354
         }
Please login to merge, or discard this patch.
src/resta/Router/KernelRouterProcess.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     /**
10 10
      * @var array $routerSpecification
11 11
      */
12
-    protected $routerSpecification=[
12
+    protected $routerSpecification = [
13 13
         'pickRouter',
14 14
         'stackRouter'
15 15
     ];
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
      */
20 20
     private function pickRouter()
21 21
     {
22
-        $singleton=core();
23
-        $singleton->routerSpecifications['router']=(isset($singleton->pick)) ? $singleton->pick[0] : $singleton->routerResult;
22
+        $singleton = core();
23
+        $singleton->routerSpecifications['router'] = (isset($singleton->pick)) ? $singleton->pick[0] : $singleton->routerResult;
24 24
     }
25 25
 
26 26
     /**
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         //These are the customizations that are available in the routerSpecification object.
33 33
         //By running these individually, we assign reference values to the router variable,
34 34
         //which is the actual kernel object, so route customization takes place.
35
-        return $this->routerProcess(function($router){
35
+        return $this->routerProcess(function($router) {
36 36
             return $router;
37 37
         });
38 38
     }
@@ -44,17 +44,17 @@  discard block
 block discarded – undo
44 44
     private function routerProcess(callable $callback)
45 45
     {
46 46
         //After running the router specification sequence one by one, we collect reference values for the kernel router.
47
-        array_walk($this->routerSpecification,[$this,'routerSpecification']);
47
+        array_walk($this->routerSpecification, [$this, 'routerSpecification']);
48 48
 
49 49
         //Then we return the routerSpecifications object that is assigned for the kernel to the router method.
50
-        return call_user_func_array($callback,[core()->routerSpecifications['router']]);
50
+        return call_user_func_array($callback, [core()->routerSpecifications['router']]);
51 51
     }
52 52
 
53 53
     /**
54 54
      * @param $specification
55 55
      * @param $key
56 56
      */
57
-    private function routerSpecification($specification,$key)
57
+    private function routerSpecification($specification, $key)
58 58
     {
59 59
         $this->{$specification}();
60 60
     }
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
         //if there is no singleton pick
72 72
         //If this is the case, we collect these values and assign them to the router variable.
73 73
         //if it is not, the router will send the default value to the output.
74
-        if(!isset($singleton->pick)){
75
-            $singleton->routerSpecifications['router']=(isset($singleton->stack)) ? $singleton->stack : $singleton->routerResult;
74
+        if (!isset($singleton->pick)) {
75
+            $singleton->routerSpecifications['router'] = (isset($singleton->stack)) ? $singleton->stack : $singleton->routerResult;
76 76
         }
77 77
     }
78 78
 
Please login to merge, or discard this patch.
src/resta/Router/RouteHttpManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     public static function delete(...$params) : void
16 16
     {
17 17
         // the DELETE method deletes the specified resource.
18
-        static::setRoute($params,__FUNCTION__,static::getTracePath());
18
+        static::setRoute($params, __FUNCTION__, static::getTracePath());
19 19
     }
20 20
 
21 21
     /**
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     {
29 29
         // the GET method requests a representation of the specified resource.
30 30
         // Requests using GET should only retrieve data.
31
-        static::setRoute($params,__FUNCTION__,static::getTracePath());
31
+        static::setRoute($params, __FUNCTION__, static::getTracePath());
32 32
     }
33 33
 
34 34
     /**
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         // the POST method is used to submit an entity to the specified resource,
60 60
         // often causing a change in state or side effects on the server.
61
-        static::setRoute($params,__FUNCTION__,static::getTracePath());
61
+        static::setRoute($params, __FUNCTION__, static::getTracePath());
62 62
     }
63 63
 
64 64
     /**
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     {
72 72
         // the PUT method replaces all current representations of
73 73
         // the target resource with the request payload.
74
-        static::setRoute($params,__FUNCTION__,static::getTracePath());
74
+        static::setRoute($params, __FUNCTION__, static::getTracePath());
75 75
     }
76 76
 
77 77
     /**
Please login to merge, or discard this patch.
src/resta/Authenticate/AuthenticateContract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * @param bool $objectReturn
26 26
      * @return mixed
27 27
      */
28
-    public function login($credentials=array(),$objectReturn=false);
28
+    public function login($credentials = array(), $objectReturn = false);
29 29
 
30 30
     /**
31 31
      * @return mixed
Please login to merge, or discard this patch.
src/resta/Authenticate/Resource/AuthLogoutManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,12 +14,12 @@
 block discarded – undo
14 14
      * @param $auth
15 15
      * @param $token
16 16
      */
17
-    public function __construct($auth,$token)
17
+    public function __construct($auth, $token)
18 18
     {
19 19
         parent::__construct($auth);
20 20
 
21 21
         //token value received by client
22
-        $this->token=$token;
22
+        $this->token = $token;
23 23
 
24 24
         //query check
25 25
         $this->logoutProcess();
Please login to merge, or discard this patch.
src/resta/Authenticate/AuthenticateProvider.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,9 @@
 block discarded – undo
77 77
 
78 78
         // if you want to see the entire login manager object directly,
79 79
         // send true to the objectReturn parameter.
80
-        if($objectReturn) return $loginManager;
80
+        if($objectReturn) {
81
+            return $loginManager;
82
+        }
81 83
 
82 84
         // the login value stored in the params property of the login manager object will return a builder object.
83 85
         // we will return the value of the login state as a boolean using the count method of this builder object.
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 class AuthenticateProvider extends ConfigProvider implements AuthenticateContract
11 11
 {
12 12
     //get auth response,auth exception,auth token and auth basic
13
-    use AuthenticateResponse,AuthenticateException,AuthenticateToken,AuthenticateBasic;
13
+    use AuthenticateResponse, AuthenticateException, AuthenticateToken, AuthenticateBasic;
14 14
 
15 15
     /**
16 16
      * @var string
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
     {
27 27
         // we obtain the data value obtained via
28 28
         // authenticate availability with the help of callback object.
29
-        return $this->checkParamsViaAvailability(function(){
30
-            return (new AuthUserManager($this->currentDeviceToken(),$this))->allDeviceTokens();
29
+        return $this->checkParamsViaAvailability(function() {
30
+            return (new AuthUserManager($this->currentDeviceToken(), $this))->allDeviceTokens();
31 31
         });
32 32
     }
33 33
 
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
     {
41 41
         // header to determine whether
42 42
         // the token value is present and return a callback.
43
-        return $this->checkTokenViaHeaders(function($token){
43
+        return $this->checkTokenViaHeaders(function($token) {
44 44
 
45 45
             // we send the user-supplied token value
46 46
             // to the authCheckManager object.
47
-            new AuthCheckManager($this,$token);
47
+            new AuthCheckManager($this, $token);
48 48
 
49 49
             // as a result we send output according to
50 50
             // the boolean value from the checkResult method.
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     {
62 62
         // we obtain the data value obtained via
63 63
         // authenticate availability with the help of callback object.
64
-        return $this->checkParamsViaAvailability('data',function($data){
64
+        return $this->checkParamsViaAvailability('data', function($data) {
65 65
             return $data;
66 66
         });
67 67
     }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function guard($guard)
77 77
     {
78
-        $this->guard=$guard;
78
+        $this->guard = $guard;
79 79
 
80 80
         $this->setAuthenticateNeeds();
81 81
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @param bool $objectReturn
90 90
      * @return $this|mixed
91 91
      */
92
-    public function login($credentials=null,$objectReturn=false)
92
+    public function login($credentials = null, $objectReturn = false)
93 93
     {
94 94
         // we will determine whether
95 95
         // the http path is correct for this method.
@@ -97,15 +97,15 @@  discard block
 block discarded – undo
97 97
 
98 98
         // we invoke the login manager and the properties
99 99
         // that this class creates will inform us about user input.
100
-        $loginManager = new AuthLoginManager($credentials,$this);
100
+        $loginManager = new AuthLoginManager($credentials, $this);
101 101
 
102 102
         // if you want to see the entire login manager object directly,
103 103
         // send true to the objectReturn parameter.
104
-        if($objectReturn) return $loginManager;
104
+        if ($objectReturn) return $loginManager;
105 105
 
106 106
         // the login value stored in the params property of the login manager object will return a builder object.
107 107
         // we will return the value of the login state as a boolean using the count method of this builder object.
108
-        if($this->getModel()=="Default"){
108
+        if ($this->getModel()=="Default") {
109 109
             return $this->getResult();
110 110
         }
111 111
 
@@ -126,11 +126,11 @@  discard block
 block discarded – undo
126 126
 
127 127
         // header to determine whether
128 128
         // the token value is present and return a callback.
129
-        return $this->checkTokenViaHeaders(function($token){
129
+        return $this->checkTokenViaHeaders(function($token) {
130 130
 
131 131
             // we send the user-supplied token value
132 132
             // to the authCheckManager object.
133
-            new AuthLogoutManager($this,$token);
133
+            new AuthLogoutManager($this, $token);
134 134
 
135 135
             // as a result we send output according to
136 136
             // the boolean value from the checkResult method.
@@ -147,8 +147,8 @@  discard block
 block discarded – undo
147 147
     {
148 148
         // we obtain the user value obtained via
149 149
         // authenticate availability with the help of callback object.
150
-        return $this->checkParamsViaAvailability(function(){
151
-            return (new AuthUserManager($this->currentDeviceToken(),$this))->userProcess();
150
+        return $this->checkParamsViaAvailability(function() {
151
+            return (new AuthUserManager($this->currentDeviceToken(), $this))->userProcess();
152 152
         });
153 153
     }
154 154
 
Please login to merge, or discard this patch.
src/resta/Cache/CacheConfigDetector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@
 block discarded – undo
18 18
      */
19 19
     public function __construct()
20 20
     {
21
-        if(config('cache.default')!==null){
21
+        if (config('cache.default')!==null) {
22 22
 
23 23
             $default = config('cache.default');
24 24
 
25 25
             $this->config['adapter']  = config('cache.stores.'.$default.'.driver') ?? exception()->invalidArgument('driver for '.$default.' within cache config is not valid');
26
-            $this->config['path']     = config('cache.stores.'.$default.'.path') ?? path()->appResourche().'/Cache' ;
26
+            $this->config['path']     = config('cache.stores.'.$default.'.path') ?? path()->appResourche().'/Cache';
27 27
             $this->config['expire']   = config('cache.stores.'.$default.'.expire') ?? 0;
28 28
         }
29 29
     }
Please login to merge, or discard this patch.