Passed
Branch master (dcbc70)
by Jakub
03:12
created
src/ChatControl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace HeroesofAbenez\Chat;
5 5
 
Please login to merge, or discard this patch.
src/ChatCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace HeroesofAbenez\Chat;
5 5
 
Please login to merge, or discard this patch.
src/ChatCommandsProcessor.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace HeroesofAbenez\Chat;
5 5
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
   public function addCommand(IChatCommand $command): void {
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
   }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
    * Extract parameters from text
73 73
    */
74 74
   public function extractParameters(string $text): array {
75
-    if(substr($text, 0, 1) != "/" OR !strpos($text, " ")) {
75
+    if(substr($text, 0, 1) != "/" or !strpos($text, " ")) {
76 76
       return [];
77 77
     }
78 78
     $params = explode(" ", $text);
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         return $command;
104 104
       }
105 105
     }
106
-    throw new CommandNotFoundException("Command $name is not defined.");
106
+    throw new CommandNotFoundException("command $name is not defined.");
107 107
   }
108 108
   
109 109
   /**
Please login to merge, or discard this patch.
src/CommandNameAlreadyUsedException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace HeroesofAbenez\Chat;
5 5
 
Please login to merge, or discard this patch.
src/ChatMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace HeroesofAbenez\Chat;
5 5
 
Please login to merge, or discard this patch.
src/IChatCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace HeroesofAbenez\Chat;
5 5
 
Please login to merge, or discard this patch.
src/ChatCharactersCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace HeroesofAbenez\Chat;
5 5
 
Please login to merge, or discard this patch.
src/InvalidMessageProcessorException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace HeroesofAbenez\Chat;
5 5
 
Please login to merge, or discard this patch.
src/ChatCharacter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace HeroesofAbenez\Chat;
5 5
 
Please login to merge, or discard this patch.