Completed
Push — master ( a6c9e2...cdc345 )
by Sherif
03:17
created
src/Modules/V1/Core/Decorators/CachingDecorator.php 1 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, $name) {
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.