@@ -59,8 +59,7 @@ discard block |
||
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 |
||
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 | } |
@@ -156,8 +156,7 @@ discard block |
||
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 |
||
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 | } |