@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace HeroesofAbenez\Chat; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace HeroesofAbenez\Chat; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace HeroesofAbenez\Chat; |
5 | 5 |
@@ -22,7 +22,7 @@ discard block |
||
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 |
||
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 |
||
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 | /** |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace HeroesofAbenez\Chat; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace HeroesofAbenez\Chat; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace HeroesofAbenez\Chat; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace HeroesofAbenez\Chat; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace HeroesofAbenez\Chat; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace HeroesofAbenez\Chat; |
5 | 5 |