@@ -36,7 +36,7 @@ |
||
| 36 | 36 | |
| 37 | 37 | /** @var Game $game */ |
| 38 | 38 | foreach ($games as $game) { |
| 39 | - if($input->getOption('success')) { |
|
| 39 | + if ($input->getOption('success')) { |
|
| 40 | 40 | $tgApi->sendMessage($game->chatId, 'Bot is back online! The game continues...'); |
| 41 | 41 | } else { |
| 42 | 42 | $tgApi->sendMessage($game->chatId, 'Bot rebooting due to deploy, sorry. The game will continue once bot boots again.'); |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | if (mb_strtoupper($question->a1, 'UTF-8') == mb_strtoupper($message['text'], 'UTF-8')) { |
| 113 | 113 | // Correct answer! |
| 114 | 114 | |
| 115 | - $user->setPoints($user->getPoints()+$question->price); |
|
| 115 | + $user->setPoints($user->getPoints() + $question->price); |
|
| 116 | 116 | $this->em->persist($user); |
| 117 | 117 | |
| 118 | 118 | $this->botApi->sendMessage( |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | |
| 152 | 152 | public function askQuestion(Game $game, Question $question) |
| 153 | 153 | { |
| 154 | - $this->botApi->sendMessage($game->chatId, '*[question]* '.$question->text.' _('.mb_strlen($question->a1,'UTF-8').'letters)_', 'markdown'); |
|
| 154 | + $this->botApi->sendMessage($game->chatId, '*[question]* '.$question->text.' _('.mb_strlen($question->a1, 'UTF-8').'letters)_', 'markdown'); |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | /** |