@@ -55,7 +55,7 @@ discard block |
||
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 |
||
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 |
@@ -64,7 +64,7 @@ discard block |
||
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 |
||
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 |