@@ -153,7 +153,7 @@ discard block |
||
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 |
||
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]; |
@@ -307,7 +307,7 @@ |
||
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 | } |
@@ -84,7 +84,7 @@ |
||
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 | ) |