@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | 'first_name' => 'botname', |
| 156 | 156 | 'username' => 'namebot', |
| 157 | 157 | ]; |
| 158 | - $data['chat'] = ['id' => $data['chat_id']]; |
|
| 158 | + $data['chat'] = ['id' => $data['chat_id']]; |
|
| 159 | 159 | |
| 160 | 160 | $fake_response['result'] = $data; |
| 161 | 161 | } |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | { |
| 204 | 204 | //Fix so that the keyboard markup is a string, not an object |
| 205 | 205 | if (isset($data['reply_markup'])) { |
| 206 | - $data['reply_markup'] = (string)$data['reply_markup']; |
|
| 206 | + $data['reply_markup'] = (string) $data['reply_markup']; |
|
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | $request_params = self::setUpRequestParams($data); |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | '/bot' . self::$telegram->getApiKey() . '/' . $action, |
| 217 | 217 | $request_params |
| 218 | 218 | ); |
| 219 | - $result = (string)$response->getBody(); |
|
| 219 | + $result = (string) $response->getBody(); |
|
| 220 | 220 | |
| 221 | 221 | //Logging getUpdates Update |
| 222 | 222 | if ($action === 'getUpdates') { |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | |
| 56 | 56 | //Only get enabled Admin and User commands |
| 57 | 57 | /** @var Command[] $command_objs */ |
| 58 | - $command_objs = array_filter($this->telegram->getCommandsList(), function ($command_obj) { |
|
| 58 | + $command_objs = array_filter($this->telegram->getCommandsList(), function($command_obj) { |
|
| 59 | 59 | /** @var Command $command_obj */ |
| 60 | 60 | return !$command_obj->isSystemCommand() && $command_obj->isEnabled(); |
| 61 | 61 | }); |
@@ -14,11 +14,11 @@ |
||
| 14 | 14 | |
| 15 | 15 | class WebhookInfo extends Entity |
| 16 | 16 | { |
| 17 | - protected $url; // String Webhook URL, may be empty if webhook is not set up |
|
| 18 | - protected $has_custom_certificate; // Boolean True, if a custom certificate was provided for webhook certificate checks |
|
| 19 | - protected $pending_update_count; // Integer Number of updates awaiting delivery |
|
| 20 | - protected $last_error_date; // Integer Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook |
|
| 21 | - protected $last_error_message; // String Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook |
|
| 17 | + protected $url; // String Webhook URL, may be empty if webhook is not set up |
|
| 18 | + protected $has_custom_certificate; // Boolean True, if a custom certificate was provided for webhook certificate checks |
|
| 19 | + protected $pending_update_count; // Integer Number of updates awaiting delivery |
|
| 20 | + protected $last_error_date; // Integer Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook |
|
| 21 | + protected $last_error_message; // String Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook |
|
| 22 | 22 | |
| 23 | 23 | public function __construct(array $data) |
| 24 | 24 | { |