Completed
Branch scrutinizer_fixes (532208)
by Armando
03:18 queued 22s
created
src/Commands/UserCommands/HelpCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
         //Only get enabled Admin and User commands
57 57
         /** @var Command[] $command_objs */
58
-        $command_objs = array_filter($this->telegram->getCommandsList(), function ($command_obj) {
58
+        $command_objs = array_filter($this->telegram->getCommandsList(), function($command_obj) {
59 59
             /** @var Command $command_obj */
60 60
             return !$command_obj->isSystemCommand() && $command_obj->isEnabled();
61 61
         });
Please login to merge, or discard this patch.
src/Commands/UserCommands/WeatherCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             return '';
75 75
         }
76 76
 
77
-        return (string)$response->getBody();
77
+        return (string) $response->getBody();
78 78
     }
79 79
 
80 80
     /**
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             }
93 93
 
94 94
             //http://openweathermap.org/weather-conditions
95
-            $conditions     = [
95
+            $conditions = [
96 96
                 'clear'        => ' ☀️',
97 97
                 'clouds'       => ' ☁️',
98 98
                 'rain'         => ' ☔',
Please login to merge, or discard this patch.
src/ConversationDB.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
         }
85 85
 
86 86
         try {
87
-            $sth    = self::$pdo->prepare('INSERT INTO `' . TB_CONVERSATION . '`
87
+            $sth = self::$pdo->prepare('INSERT INTO `' . TB_CONVERSATION . '`
88 88
                 (
89 89
                 `status`, `user_id`, `chat_id`, `command`, `notes`, `created_at`, `updated_at`
90 90
                 )
Please login to merge, or discard this patch.