Passed
Push — master ( 793af2...482a73 )
by Jakub
03:03
created
src/ChatCommandsProcessor.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
   /**
Please login to merge, or discard this patch.