@@ -84,13 +84,13 @@ |
||
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 | } |