Completed
Push — master ( 4b2edc...52afdb )
by Armando
03:26 queued 01:23
created
src/Entities/InlineKeyboardButton.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@
 block discarded – undo
42 42
     {
43 43
         return is_array($data) &&
44 44
                array_key_exists('text', $data) && (
45
-                   array_key_exists('url', $data) ||
45
+                    array_key_exists('url', $data) ||
46 46
                    array_key_exists('callback_data', $data) ||
47 47
                    array_key_exists('switch_inline_query', $data) ||
48 48
                    array_key_exists('switch_inline_query_current_chat', $data)
49
-               );
49
+                );
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.
src/Telegram.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -757,7 +757,7 @@  discard block
 block discarded – undo
757 757
      *
758 758
      * This is kept for backwards compatibility!
759 759
      *
760
-     * @return mixed
760
+     * @return ServerResponse
761 761
      * @throws \Longman\TelegramBot\Exception\TelegramException
762 762
      */
763 763
     public function unsetWebhook()
@@ -768,7 +768,7 @@  discard block
 block discarded – undo
768 768
     /**
769 769
      * Delete any assigned webhook
770 770
      *
771
-     * @return mixed
771
+     * @return ServerResponse
772 772
      * @throws \Longman\TelegramBot\Exception\TelegramException
773 773
      */
774 774
     public function deleteWebhook()
Please login to merge, or discard this patch.
src/Request.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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',
Please login to merge, or discard this patch.