| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | public function run($message, $user) |
||
| 8 | { |
||
| 9 | $game = $this->gameService->findGame($message); |
||
| 10 | |||
| 11 | if ($game->status == 1) { |
||
| 12 | $this->botApi->sendMessage( |
||
| 13 | $game->chatId, |
||
| 14 | 'Ok, changing question.', |
||
| 15 | 'markdown' |
||
| 16 | ); |
||
| 17 | $this->gameService->em->persist($game); |
||
| 18 | $this->gameService->em->flush(); |
||
| 19 | $this->gameService->askQuestion($game); |
||
| 20 | } |
||
| 21 | } |
||
| 22 | } |
||
| 23 |