Completed
Branch feature/improve-code (a8c279)
by Avtandil
06:09
created
src/Request.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                 'first_name' => 'botname',
154 154
                 'username'   => 'namebot',
155 155
             ];
156
-            $data['chat']       = ['id' => $data['chat_id']];
156
+            $data['chat'] = ['id' => $data['chat_id']];
157 157
 
158 158
             $fake_response['result'] = $data;
159 159
         }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 
177 177
         //Fix so that the keyboard markup is a string, not an object
178 178
         if (isset($data['reply_markup']) && !is_string($data['reply_markup'])) {
179
-            $data['reply_markup'] = (string)$data['reply_markup'];
179
+            $data['reply_markup'] = (string) $data['reply_markup'];
180 180
         }
181 181
 
182 182
         $request_params = ['debug' => $debug_handle];
Please login to merge, or discard this patch.
src/Telegram.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -307,7 +307,7 @@
 block discarded – undo
307 307
 
308 308
         if ($response->isOk()) {
309 309
             //Process all updates
310
-            foreach ((array)$response->getResult() as $result) {
310
+            foreach ((array) $response->getResult() as $result) {
311 311
                 $this->processUpdate($result);
312 312
             }
313 313
         }
Please login to merge, or discard this patch.
src/ConversationDB.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
         }
85 85
 
86 86
         try {
87
-            $sth    = self::$pdo->prepare('INSERT INTO `' . TB_CONVERSATION . '`
87
+            $sth = self::$pdo->prepare('INSERT INTO `' . TB_CONVERSATION . '`
88 88
                 (
89 89
                 `status`, `user_id`, `chat_id`, `command`, `notes`, `created_at`, `updated_at`
90 90
                 )
Please login to merge, or discard this patch.