Conditions | 6 |
Paths | 5 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 6 |
Changes | 4 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
59 | 2 | public function handle(Update $update) |
|
60 | { |
||
61 | 2 | foreach ($this->events as $event) { |
|
62 | /* @var \TelegramBot\Api\Events\Event $event */ |
||
63 | 2 | if ($event->executeChecker($update) === true) { |
|
64 | 2 | if ($event->executeAction($update) === false) { |
|
65 | 1 | if ($this->tracker && ($message = $update->getMessage())) { |
|
66 | 1 | $checker = new ReflectionFunction($event->getChecker()); |
|
67 | 1 | $this->tracker->track($message, $checker->getStaticVariables()['name']); |
|
68 | 1 | } |
|
69 | 1 | break; |
|
70 | } |
||
75 |