@@ -328,7 +328,7 @@ |
||
328 | 328 | if ($response->isOk()) { |
329 | 329 | //Process all updates |
330 | 330 | /** @var Update $result */ |
331 | - foreach ((array)$response->getResult() as $result) { |
|
331 | + foreach ((array) $response->getResult() as $result) { |
|
332 | 332 | $this->processUpdate($result); |
333 | 333 | } |
334 | 334 | } |
@@ -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 | } |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | |
179 | 179 | //Fix so that the keyboard markup is a string, not an object |
180 | 180 | if (isset($data['reply_markup']) && !is_string($data['reply_markup'])) { |
181 | - $data['reply_markup'] = (string)$data['reply_markup']; |
|
181 | + $data['reply_markup'] = (string) $data['reply_markup']; |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | $request_params = ['debug' => $debug_handle]; |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | |
204 | 204 | $result = ''; |
205 | 205 | try { |
206 | - $result = (string)self::$client->post( |
|
206 | + $result = (string) self::$client->post( |
|
207 | 207 | '/bot' . self::$telegram->getApiKey() . '/' . $action, |
208 | 208 | $request_params |
209 | 209 | )->getBody(); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | //Set the object members from the passed data params |
64 | 64 | foreach (['resize_keyboard', 'one_time_keyboard', 'selective'] as $param) { |
65 | - $this->$param = isset($data[$param]) ? (bool)$data[$param] : false; |
|
65 | + $this->$param = isset($data[$param]) ? (bool) $data[$param] : false; |
|
66 | 66 | } |
67 | 67 | } |
68 | 68 | } |