Completed
Push — develop ( 0d59d0...fae82d )
by Armando
07:30 queued 05:34
created
src/Telegram.php 2 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.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -787,7 +787,7 @@  discard block
 block discarded – undo
787 787
             throw new TelegramException('Hook url is empty!');
788 788
         }
789 789
 
790
-        $data        = array_intersect_key($data, array_flip([
790
+        $data = array_intersect_key($data, array_flip([
791 791
             'certificate',
792 792
             'max_connections',
793 793
             'allowed_updates',
@@ -902,7 +902,7 @@  discard block
 block discarded – undo
902 902
         }
903 903
 
904 904
         $this->run_commands  = true;
905
-        $this->botan_enabled = false;   // Force disable Botan.io integration, we don't want to track self-executed commands!
905
+        $this->botan_enabled = false; // Force disable Botan.io integration, we don't want to track self-executed commands!
906 906
 
907 907
         $result = Request::getMe()->getResult();
908 908
 
@@ -914,8 +914,8 @@  discard block
 block discarded – undo
914 914
         $bot_name     = $result->getFirstName();
915 915
         $bot_username = $result->getUsername();
916 916
 
917
-        $this->enableAdmin($bot_id);    // Give bot access to admin commands
918
-        $this->getCommandsList();       // Load full commands list
917
+        $this->enableAdmin($bot_id); // Give bot access to admin commands
918
+        $this->getCommandsList(); // Load full commands list
919 919
 
920 920
         foreach ($commands as $command) {
921 921
             $this->update = new Update(
Please login to merge, or discard this patch.
src/Commands/AdminCommands/CleanupCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         }
102 102
 
103 103
         // Convert numeric-only values to days.
104
-        array_walk($clean_older_than, function (&$time) use ($custom_time) {
104
+        array_walk($clean_older_than, function(&$time) use ($custom_time) {
105 105
             if (!empty($custom_time)) {
106 106
                 $time = $custom_time;
107 107
             }
@@ -357,9 +357,9 @@  discard block
 block discarded – undo
357 357
                 }
358 358
             }
359 359
 
360
-            $pdo->commit();     // commit changes to the database and end transaction
360
+            $pdo->commit(); // commit changes to the database and end transaction
361 361
         } catch (PDOException $e) {
362
-            $pdo->rollBack();   // rollback changes on exception (useful if you want to track down error - you can't replicate it when some of the data is already deleted...)
362
+            $pdo->rollBack(); // rollback changes on exception (useful if you want to track down error - you can't replicate it when some of the data is already deleted...)
363 363
 
364 364
             $data['text'] = '*Database cleanup failed!* _(check your error logs)_';
365 365
             Request::sendMessage($data);
Please login to merge, or discard this patch.