Completed
Push — master ( 2ce496...5c1ad5 )
by Sherif
06:14
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);
@@ -88,8 +87,7 @@  discard block
 block discarded – undo
88 87
         if (in_array($name, $cacheConfig['cache']))
89 88
         {
90 89
             $this->cacheConfig = 'cache';
91
-        }
92
-        else if (in_array($name, $cacheConfig['clear']))
90
+        } else if (in_array($name, $cacheConfig['clear']))
93 91
         {
94 92
             $this->cacheConfig = $cacheConfig['clear'][$name];
95 93
         }
Please login to merge, or discard this patch.
src/Modules/V1/Core/Console/Commands/GenerateDoc.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -156,8 +156,7 @@  discard block
 block discarded – undo
156 156
                 if ($match[1] == '$this->validationRules')
157 157
                 {
158 158
                     $route['body'] = $validationRules;
159
-                }
160
-                else
159
+                } else
161 160
                 {
162 161
                     $route['body'] = eval('return ' . $match[1] . ';');
163 162
                 }
@@ -167,14 +166,12 @@  discard block
 block discarded – undo
167 166
                     if(strpos($rule, 'unique'))
168 167
                     {
169 168
                         $rule = substr($rule, 0, strpos($rule, 'unique') + 6);
170
-                    }
171
-                    elseif(strpos($rule, 'exists'))
169
+                    } elseif(strpos($rule, 'exists'))
172 170
                     {
173 171
                         $rule = substr($rule, 0, strpos($rule, 'exists') - 1);
174 172
                     }
175 173
                 }
176
-            }
177
-            else
174
+            } else
178 175
             {
179 176
                 $route['body'] = 'conditions';
180 177
             }
Please login to merge, or discard this patch.