Passed
Push — master ( 7ecda6...9ca615 )
by Armando
03:24
created
src/Request.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
                 'first_name' => 'botname',
335 335
                 'username'   => 'namebot',
336 336
             ];
337
-            $data['chat']       = ['id' => $data['chat_id']];
337
+            $data['chat'] = ['id' => $data['chat_id']];
338 338
 
339 339
             $fake_response['result'] = $data;
340 340
         }
@@ -870,9 +870,9 @@  discard block
 block discarded – undo
870 870
                     // Make sure we're handling integers here.
871 871
                     $requests = array_map('intval', $requests);
872 872
 
873
-                    $chat_per_second   = ($requests['LIMIT_PER_SEC'] === 0);    // No more than one message per second inside a particular chat
873
+                    $chat_per_second   = ($requests['LIMIT_PER_SEC'] === 0); // No more than one message per second inside a particular chat
874 874
                     $global_per_second = ($requests['LIMIT_PER_SEC_ALL'] < 30); // No more than 30 messages per second to different chats
875
-                    $groups_per_minute = (((is_numeric($chat_id) && $chat_id > 0) || $inline_message_id !== null) || ((!is_numeric($chat_id) || $chat_id < 0) && $requests['LIMIT_PER_MINUTE'] < 20));    // No more than 20 messages per minute in groups and channels
875
+                    $groups_per_minute = (((is_numeric($chat_id) && $chat_id > 0) || $inline_message_id !== null) || ((!is_numeric($chat_id) || $chat_id < 0) && $requests['LIMIT_PER_MINUTE'] < 20)); // No more than 20 messages per minute in groups and channels
876 876
 
877 877
                     if ($chat_per_second && $global_per_second && $groups_per_minute) {
878 878
                         break;
Please login to merge, or discard this patch.
src/Telegram.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -900,7 +900,7 @@  discard block
 block discarded – undo
900 900
             throw new TelegramException('Hook url is empty!');
901 901
         }
902 902
 
903
-        $data        = array_intersect_key($data, array_flip([
903
+        $data = array_intersect_key($data, array_flip([
904 904
             'certificate',
905 905
             'max_connections',
906 906
             'allowed_updates',
@@ -1016,7 +1016,7 @@  discard block
 block discarded – undo
1016 1016
         // Give bot access to admin commands
1017 1017
         $this->enableAdmin($bot_id);
1018 1018
 
1019
-        $newUpdate = static function ($text = '') use ($bot_id, $bot_name, $bot_username) {
1019
+        $newUpdate = static function($text = '') use ($bot_id, $bot_name, $bot_username) {
1020 1020
             return new Update([
1021 1021
                 'update_id' => 0,
1022 1022
                 'message'   => [
Please login to merge, or discard this patch.