@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | public function addCommand(IChatCommand $command): void { |
25 | 25 | $name = $command->getName(); |
26 | 26 | if($this->hasCommand($name)) { |
27 | - throw new CommandNameAlreadyUsedException("Command $name is already defined."); |
|
27 | + throw new CommandNameAlreadyUsedException("command $name is already defined."); |
|
28 | 28 | } |
29 | 29 | $this->commands[] = $command; |
30 | 30 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * Extract parameters from text |
75 | 75 | */ |
76 | 76 | public function extractParameters(string $text): array { |
77 | - if(!Strings::startsWith($text, "/") OR !Strings::contains($text, " ")) { |
|
77 | + if(!Strings::startsWith($text, "/") or !Strings::contains($text, " ")) { |
|
78 | 78 | return []; |
79 | 79 | } |
80 | 80 | $params = explode(" ", $text); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | return $command; |
106 | 106 | } |
107 | 107 | } |
108 | - throw new CommandNotFoundException("Command $name is not defined."); |
|
108 | + throw new CommandNotFoundException("command $name is not defined."); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |