Completed
Pull Request — develop (#430)
by
unknown
03:01
created
src/Commands/UserCommands/HelpCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 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
         });
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             );
70 70
 
71 71
             foreach ($command_objs as $command) {
72
-                if($command->showInHelp()) {
72
+                if ($command->showInHelp()) {
73 73
                     continue;
74 74
                 }
75 75
 
Please login to merge, or discard this patch.
src/Commands/Command.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      *
65 65
      * @var bool
66 66
      */
67
-     protected $show_in_help = true;
67
+        protected $show_in_help = true;
68 68
 
69 69
     /**
70 70
      * Version
@@ -264,10 +264,10 @@  discard block
 block discarded – undo
264 264
      *
265 265
      * @return bool
266 266
      */
267
-     public function showInHelp()
268
-     {
269
-     	return $this->show_in_help;
270
-     }
267
+        public function showInHelp()
268
+        {
269
+            return $this->show_in_help;
270
+        }
271 271
 
272 272
     /**
273 273
      * Check if command is enabled
Please login to merge, or discard this patch.