@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | $expire = $this->getExpire($method); |
21 | 21 | |
22 | - $closure = function () use ($method, $parameters) { |
|
22 | + $closure = function() use ($method, $parameters) { |
|
23 | 23 | return call_user_func_array([$this, $method], $parameters); |
24 | 24 | }; |
25 | 25 | |
@@ -43,9 +43,9 @@ discard block |
||
43 | 43 | */ |
44 | 44 | private function getExpire($method) |
45 | 45 | { |
46 | - $rf = new \ReflectionMethod($this,$method); |
|
46 | + $rf = new \ReflectionMethod($this, $method); |
|
47 | 47 | $staticVar = $rf->getStaticVariables(); |
48 | - if (array_key_exists('expire',$staticVar)){ |
|
48 | + if (array_key_exists('expire', $staticVar)) { |
|
49 | 49 | $expire = $staticVar['expire']; |
50 | 50 | } else { |
51 | 51 | $expire = 60; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * delete all cache from the class |
59 | 59 | * TODO support other driver |
60 | 60 | */ |
61 | - public function forgetCache(){ |
|
61 | + public function forgetCache() { |
|
62 | 62 | $cacheName = __CLASS__ . ':*'; |
63 | 63 | |
64 | 64 | $redis = Cache::getRedis(); |