Completed
Push — master ( 392340...6e5734 )
by Sherif
07:20
created
src/Modules/V1/Core/Decorators/CachingDecorator.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,8 +68,7 @@  discard block
 block discarded – undo
68 68
             return $this->cache->tags([$this->cacheTag])->rememberForever($cacheKey, function() use ($arguments, $name) {
69 69
                 return call_user_func_array([$this->repo, $name], $arguments);
70 70
             });
71
-        }
72
-        else if ($this->cacheConfig)
71
+        } else if ($this->cacheConfig)
73 72
         {
74 73
             $this->cache->tags($this->cacheConfig)->flush();
75 74
             return call_user_func_array([$this->repo, $name], $arguments);
@@ -93,8 +92,7 @@  discard block
 block discarded – undo
93 92
         if ($cacheConfig && in_array($name, $cacheConfig['cache']))
94 93
         {
95 94
             $this->cacheConfig = 'cache';
96
-        }
97
-        else if ($cacheConfig && isset($cacheConfig['clear'][$name]))
95
+        } else if ($cacheConfig && isset($cacheConfig['clear'][$name]))
98 96
         {
99 97
             $this->cacheConfig = $cacheConfig['clear'][$name];
100 98
         }
Please login to merge, or discard this patch.