@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | 'first_name' => 'botname', |
| 157 | 157 | 'username' => 'namebot', |
| 158 | 158 | ]; |
| 159 | - $data['chat'] = ['id' => $data['chat_id']]; |
|
| 159 | + $data['chat'] = ['id' => $data['chat_id']]; |
|
| 160 | 160 | |
| 161 | 161 | $fake_response['result'] = $data; |
| 162 | 162 | } |
@@ -217,14 +217,14 @@ discard block |
||
| 217 | 217 | '/bot' . self::$telegram->getApiKey() . '/' . $action, |
| 218 | 218 | $request_params |
| 219 | 219 | ); |
| 220 | - $result = (string)$response->getBody(); |
|
| 220 | + $result = (string) $response->getBody(); |
|
| 221 | 221 | |
| 222 | 222 | //Logging getUpdates Update |
| 223 | 223 | if ($action === 'getUpdates') { |
| 224 | 224 | TelegramLog::update($result); |
| 225 | 225 | } |
| 226 | 226 | } catch (RequestException $e) { |
| 227 | - $result = (string)$e->getResponse()->getBody(); |
|
| 227 | + $result = (string) $e->getResponse()->getBody(); |
|
| 228 | 228 | } finally { |
| 229 | 229 | //Logging verbose debug output |
| 230 | 230 | TelegramLog::endDebugLogTempStream("Verbose HTTP Request output:\n%s\n"); |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | |
| 264 | 264 | return filesize($file_path) > 0; |
| 265 | 265 | } catch (RequestException $e) { |
| 266 | - return (string)$e->getResponse()->getBody(); |
|
| 266 | + return (string) $e->getResponse()->getBody(); |
|
| 267 | 267 | } finally { |
| 268 | 268 | //Logging verbose debug output |
| 269 | 269 | TelegramLog::endDebugLogTempStream("Verbose HTTP File Download Request output:\n%s\n"); |