Completed
Push — master ( 3e7af9...ed5034 )
by Armando
04:23
created
src/Telegram.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -856,7 +856,7 @@
 block discarded – undo
856 856
     protected function ucfirstUnicode($str, $encoding = 'UTF-8')
857 857
     {
858 858
         return mb_strtoupper(mb_substr($str, 0, 1, $encoding), $encoding)
859
-               . mb_strtolower(mb_substr($str, 1, mb_strlen($str), $encoding), $encoding);
859
+                . mb_strtolower(mb_substr($str, 1, mb_strlen($str), $encoding), $encoding);
860 860
     }
861 861
 
862 862
     /**
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
             }
361 361
 
362 362
             if ($this->last_update_id !== null) {
363
-                $offset = $this->last_update_id + 1;    //As explained in the telegram bot API documentation
363
+                $offset = $this->last_update_id + 1; //As explained in the telegram bot API documentation
364 364
             }
365 365
 
366 366
             $response = Request::getUpdates(
@@ -833,7 +833,7 @@  discard block
 block discarded – undo
833 833
             throw new TelegramException('Hook url is empty!');
834 834
         }
835 835
 
836
-        $data        = array_intersect_key($data, array_flip([
836
+        $data = array_intersect_key($data, array_flip([
837 837
             'certificate',
838 838
             'max_connections',
839 839
             'allowed_updates',
@@ -947,7 +947,7 @@  discard block
 block discarded – undo
947 947
         }
948 948
 
949 949
         $this->run_commands  = true;
950
-        $this->botan_enabled = false;   // Force disable Botan.io integration, we don't want to track self-executed commands!
950
+        $this->botan_enabled = false; // Force disable Botan.io integration, we don't want to track self-executed commands!
951 951
 
952 952
         $result = Request::getMe();
953 953
 
@@ -964,8 +964,8 @@  discard block
 block discarded – undo
964 964
         }
965 965
 
966 966
 
967
-        $this->enableAdmin($bot_id);    // Give bot access to admin commands
968
-        $this->getCommandsList();       // Load full commands list
967
+        $this->enableAdmin($bot_id); // Give bot access to admin commands
968
+        $this->getCommandsList(); // Load full commands list
969 969
 
970 970
         foreach ($commands as $command) {
971 971
             $this->update = new Update(
Please login to merge, or discard this patch.
src/Commands/AdminCommands/SendtochannelCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
                     $notes['state'] = 0;
129 129
                     $this->conversation->update();
130 130
 
131
-                    $keyboard = array_map(function ($channel) {
131
+                    $keyboard = array_map(function($channel) {
132 132
                         return [$channel];
133 133
                     }, $channels);
134 134
 
Please login to merge, or discard this patch.
src/Commands/AdminCommands/SendtoallCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
         /** @var ServerResponse[] $results */
63 63
         $results = Request::sendToActiveChats(
64
-            'sendMessage',     //callback function to execute (see Request.php methods)
64
+            'sendMessage', //callback function to execute (see Request.php methods)
65 65
             ['text' => $text], //Param to evaluate the request
66 66
             [
67 67
                 'groups'      => true,
Please login to merge, or discard this patch.