Completed
Push — 920-new_system_commands ( 8add74 )
by Armando
02:47
created
src/Telegram.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -801,7 +801,7 @@
 block discarded – undo
801 801
     /**
802 802
      * Delete any assigned webhook
803 803
      *
804
-     * @return mixed
804
+     * @return ServerResponse
805 805
      * @throws \Longman\TelegramBot\Exception\TelegramException
806 806
      */
807 807
     public function deleteWebhook()
Please login to merge, or discard this patch.
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
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
             }
354 354
 
355 355
             if ($this->last_update_id !== null) {
356
-                $offset = $this->last_update_id + 1;    //As explained in the telegram bot API documentation
356
+                $offset = $this->last_update_id + 1; //As explained in the telegram bot API documentation
357 357
             }
358 358
 
359 359
             $response = Request::getUpdates(
@@ -816,7 +816,7 @@  discard block
 block discarded – undo
816 816
             throw new TelegramException('Hook url is empty!');
817 817
         }
818 818
 
819
-        $data        = array_intersect_key($data, array_flip([
819
+        $data = array_intersect_key($data, array_flip([
820 820
             'certificate',
821 821
             'max_connections',
822 822
             'allowed_updates',
@@ -929,7 +929,7 @@  discard block
 block discarded – undo
929 929
             throw new TelegramException('No command(s) provided!');
930 930
         }
931 931
 
932
-        $this->run_commands  = true;
932
+        $this->run_commands = true;
933 933
 
934 934
         $result = Request::getMe();
935 935
 
@@ -946,8 +946,8 @@  discard block
 block discarded – undo
946 946
         }
947 947
 
948 948
 
949
-        $this->enableAdmin($bot_id);    // Give bot access to admin commands
950
-        $this->getCommandsList();       // Load full commands list
949
+        $this->enableAdmin($bot_id); // Give bot access to admin commands
950
+        $this->getCommandsList(); // Load full commands list
951 951
 
952 952
         foreach ($commands as $command) {
953 953
             $this->update = new Update(
Please login to merge, or discard this patch.