Completed
Push — master ( 3cae80...41e9e9 )
by Sherif
02:59
created
src/Modules/V1/Core/Http/Controllers/BaseApiController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $this->validationRules     = property_exists($this, 'validationRules') ? $this->validationRules : false;
35 35
         $this->skipPermissionCheck = property_exists($this, 'skipPermissionCheck') ? $this->skipPermissionCheck : [];
36 36
         $this->skipLoginCheck      = property_exists($this, 'skipLoginCheck') ? $this->skipLoginCheck : [];
37
-        $route                     = explode('@',\Route::currentRouteAction())[1];
37
+        $route                     = explode('@', \Route::currentRouteAction())[1];
38 38
 
39 39
         $this->checkPermission($route);
40 40
         $this->setRelations($route);
Please login to merge, or discard this patch.
src/Modules/V1/Core/Decorators/CachingDecorator.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         if ($this->cacheConfig && $this->cacheConfig == 'cache') 
56 56
         {
57 57
             $page     = \Request::get('page') ?? '1';
58
-            $cacheKey = $name . $page . serialize($arguments);
58
+            $cacheKey = $name.$page.serialize($arguments);
59 59
             return $this->cache->tags([$this->model])->rememberForever($cacheKey, function() use ($arguments) {
60 60
                 return call_user_func_array([$this->repo, $name], $arguments);
61 61
             });
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
             return $this->cache->tags([$this->model])->rememberForever($cacheKey, function() use ($arguments) {
60 60
                 return call_user_func_array([$this->repo, $name], $arguments);
61 61
             });
62
-        }
63
-        else if ($this->cacheConfig)
62
+        } else if ($this->cacheConfig)
64 63
         {
65 64
             $this->cache->tags($this->cacheConfig)->flush();
66 65
             return call_user_func_array([$this->repo, $name], $arguments);
@@ -84,8 +83,7 @@  discard block
 block discarded – undo
84 83
         if (in_array($cacheConfig['cache'], $name))
85 84
         {
86 85
             $this->cacheConfig = 'cache';
87
-        }
88
-        else if (in_array($cacheConfig['clear'], $name))
86
+        } else if (in_array($cacheConfig['clear'], $name))
89 87
         {
90 88
             $this->cacheConfig = $cacheConfig['clear'][$name];
91 89
         }
Please login to merge, or discard this patch.