@@ -149,17 +149,17 @@ |
||
| 149 | 149 | */ |
| 150 | 150 | public function get_event($command) |
| 151 | 151 | { |
| 152 | - $events = $this->events; |
|
| 152 | + $events = $this->events; |
|
| 153 | 153 | |
| 154 | - foreach($events->events as $event) |
|
| 155 | - { |
|
| 156 | - $checker = $event->getChecker(); |
|
| 157 | - $closureReflection = new ReflectionFunction($checker); |
|
| 154 | + foreach($events->events as $event) |
|
| 155 | + { |
|
| 156 | + $checker = $event->getChecker(); |
|
| 157 | + $closureReflection = new ReflectionFunction($checker); |
|
| 158 | 158 | $variables = $closureReflection->getStaticVariables(); |
| 159 | 159 | |
| 160 | - if(preg_match('/'.$variables['name'].'/', $command)) |
|
| 161 | - return $event; |
|
| 162 | - } |
|
| 160 | + if(preg_match('/'.$variables['name'].'/', $command)) |
|
| 161 | + return $event; |
|
| 162 | + } |
|
| 163 | 163 | |
| 164 | 164 | return false; |
| 165 | 165 | } |
@@ -157,8 +157,9 @@ |
||
| 157 | 157 | $closureReflection = new ReflectionFunction($checker); |
| 158 | 158 | $variables = $closureReflection->getStaticVariables(); |
| 159 | 159 | |
| 160 | - if(preg_match('/'.$variables['name'].'/', $command)) |
|
| 161 | - return $event; |
|
| 160 | + if(preg_match('/'.$variables['name'].'/', $command)) { |
|
| 161 | + return $event; |
|
| 162 | + } |
|
| 162 | 163 | } |
| 163 | 164 | |
| 164 | 165 | return false; |