@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | 'first_name' => 'botname', |
| 158 | 158 | 'username' => 'namebot', |
| 159 | 159 | ]; |
| 160 | - $data['chat'] = ['id' => $data['chat_id']]; |
|
| 160 | + $data['chat'] = ['id' => $data['chat_id']]; |
|
| 161 | 161 | |
| 162 | 162 | $fake_response['result'] = $data; |
| 163 | 163 | } |
@@ -218,14 +218,14 @@ discard block |
||
| 218 | 218 | '/bot' . self::$telegram->getApiKey() . '/' . $action, |
| 219 | 219 | $request_params |
| 220 | 220 | ); |
| 221 | - $result = (string)$response->getBody(); |
|
| 221 | + $result = (string) $response->getBody(); |
|
| 222 | 222 | |
| 223 | 223 | //Logging getUpdates Update |
| 224 | 224 | if ($action === 'getUpdates') { |
| 225 | 225 | TelegramLog::update($result); |
| 226 | 226 | } |
| 227 | 227 | } catch (RequestException $e) { |
| 228 | - $result = (string)$e->getResponse()->getBody(); |
|
| 228 | + $result = (string) $e->getResponse()->getBody(); |
|
| 229 | 229 | } finally { |
| 230 | 230 | //Logging verbose debug output |
| 231 | 231 | TelegramLog::endDebugLogTempStream("Verbose HTTP Request output:\n%s\n"); |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | |
| 265 | 265 | return filesize($file_path) > 0; |
| 266 | 266 | } catch (RequestException $e) { |
| 267 | - return (string)$e->getResponse()->getBody(); |
|
| 267 | + return (string) $e->getResponse()->getBody(); |
|
| 268 | 268 | } finally { |
| 269 | 269 | //Logging verbose debug output |
| 270 | 270 | TelegramLog::endDebugLogTempStream("Verbose HTTP File Download Request output:\n%s\n"); |
@@ -808,7 +808,7 @@ discard block |
||
| 808 | 808 | */ |
| 809 | 809 | public static function setWebhook($url = '', array $data = []) |
| 810 | 810 | { |
| 811 | - $data = array_intersect_key($data, array_flip([ |
|
| 811 | + $data = array_intersect_key($data, array_flip([ |
|
| 812 | 812 | 'certificate', |
| 813 | 813 | 'max_connections', |
| 814 | 814 | 'allowed_updates', |