From a82caf0663c8e4d6b71a4ec2a3ec32089f7e243b Mon Sep 17 00:00:00 2001 From: Kirill Kholodilin Date: Thu, 10 Nov 2016 18:29:59 +0100 Subject: [PATCH] + Add next command --- src/Chrl/AppBundle/GameAction/NextAction.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Chrl/AppBundle/GameAction/NextAction.php b/src/Chrl/AppBundle/GameAction/NextAction.php index db38f43..7f4ffb9 100644 --- a/src/Chrl/AppBundle/GameAction/NextAction.php +++ b/src/Chrl/AppBundle/GameAction/NextAction.php @@ -6,15 +6,15 @@ class NextAction extends BaseGameAction implements GameActionInterface { public function run($message, $user) { - $game = $this->gameService->findGame($message); + $game = $this->gameService->findGame($message); - $this->botApi->sendMessage( - $game->chatId, - 'Ok, changing question.', - 'markdown' - ); - $this->gameService->em->persist($game); - $this->gameService->em->flush(); - $this->gameService->askQuestion($game); + $this->botApi->sendMessage( + $game->chatId, + 'Ok, changing question.', + 'markdown' + ); + $this->gameService->em->persist($game); + $this->gameService->em->flush(); + $this->gameService->askQuestion($game); } }