@@ -32,7 +32,7 @@ |
||
32 | 32 | } else { |
33 | 33 | $this->events[$id] = new MethodEvent($data[0], $data[1], array_slice($data, 2)); |
34 | 34 | } |
35 | - } elseif (is_string($data)){ |
|
35 | + } elseif (is_string($data)) { |
|
36 | 36 | $this->events[$id] = new DefinedFunctionEvent($data, []); |
37 | 37 | } else { |
38 | 38 | throw new ProgrammerException('Cannot register event ' . $id . ' without callable or data'); |