Passed
Push — master ( 6959b9...e4cb94 )
by Jakub
13:06
created
src/ChatCommandsProcessor.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         $name = $command->getName();
24 24
         if ($this->hasCommand($name)) {
25
-            throw new CommandNameAlreadyUsedException("Command $name is already defined.");
25
+            throw new CommandNameAlreadyUsedException("command $name is already defined.");
26 26
         }
27 27
         $this->commands[] = $command;
28 28
     }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                 return $command;
109 109
             }
110 110
         }
111
-        throw new CommandNotFoundException("Command $name is not defined.");
111
+        throw new CommandNotFoundException("command $name is not defined.");
112 112
     }
113 113
 
114 114
     public function parse(string $text): ?string
Please login to merge, or discard this patch.
src/DI/ChatExtension.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         try {
54 54
             $rm = new \ReflectionMethod($interface, "create");
55 55
         } catch (\ReflectionException $e) {
56
-            throw new InvalidChatControlFactoryException("Interface $interface does not contain method create.", 0, $e);
56
+            throw new InvalidChatControlFactoryException("interface $interface does not contain method create.", 0, $e);
57 57
         }
58 58
         $returnType = $rm->getReturnType();
59 59
         if ($returnType === null || !is_subclass_of($returnType->getName(), ChatControl::class)) {
Please login to merge, or discard this patch.