Completed
Push — master ( 7b7480...f37f68 )
by DEATH
01:58
created
src/EasyCacheTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.