Completed
Push — V6 ( 927ad1...3487d5 )
by Georges
03:17
created
src/phpFastCache/EventManager.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,13 +84,13 @@
 block discarded – undo
84 84
             if(is_callable($arguments[0])){
85 85
                 if(isset($arguments[1]) && is_string($arguments[0])){
86 86
                     $this->events[$name][$arguments[1]] = $arguments[0];
87
-                }else {
87
+                } else {
88 88
                     $this->events[$name][] = $arguments[0];
89 89
                 }
90
-            }else{
90
+            } else{
91 91
                 throw new \InvalidArgumentException(sprintf('Expected Callable, got "%s"', gettype($arguments[0])));
92 92
             }
93
-        }else{
93
+        } else{
94 94
             throw new \BadMethodCallException('An event must start with "on" such as "onCacheGetItem"');
95 95
         }
96 96
     }
Please login to merge, or discard this patch.