@@ -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 | } |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | $multipart = []; |
182 | 182 | |
183 | 183 | // Convert any nested arrays into JSON strings. |
184 | - array_walk($data, function (&$item) { |
|
184 | + array_walk($data, function(&$item) { |
|
185 | 185 | is_array($item) && $item = json_encode($item); |
186 | 186 | }); |
187 | 187 | |
@@ -812,7 +812,7 @@ discard block |
||
812 | 812 | */ |
813 | 813 | public static function setWebhook($url = '', array $data = []) |
814 | 814 | { |
815 | - $data = array_intersect_key($data, array_flip([ |
|
815 | + $data = array_intersect_key($data, array_flip([ |
|
816 | 816 | 'certificate', |
817 | 817 | 'max_connections', |
818 | 818 | 'allowed_updates', |