| Conditions | 5 | 
| Paths | 5 | 
| Total Lines | 11 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 9 | 
| CRAP Score | 5 | 
| 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 (false === $event->executeAction($update)) { | |
| 65 | 1 |                     if (!is_null($this->tracker)) { | |
| 66 | 1 | $checker = new ReflectionFunction($event->getChecker()); | |
| 67 | 1 | $this->tracker->track($update->getMessage(), $checker->getStaticVariables()['name']); | |
| 68 | 1 | } | |
| 69 | 1 | break; | |
| 70 | } | ||
| 75 |