Completed
Push — master ( 81e954...315248 )
by Kirill
01:55
created
src/Chrl/AppBundle/Command/DeployCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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.');
Please login to merge, or discard this patch.
src/Chrl/AppBundle/Service/GameService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.