@@ -28,7 +28,7 @@ |
||
| 28 | 28 | * BasicEmote constructor. |
| 29 | 29 | * |
| 30 | 30 | * @param string $command The chat command |
| 31 | - * @param string $message The emote message to send |
|
| 31 | + * @param string $nbMessages The emote message to send |
|
| 32 | 32 | * @param ChatNotification $chatNotification |
| 33 | 33 | * @param array $aliases |
| 34 | 34 | * @param bool $parametersAsArray |
@@ -45,8 +45,8 @@ |
||
| 45 | 45 | $this->chatNotification = $chatNotification; |
| 46 | 46 | $this->playerStorage = $playerStorage; |
| 47 | 47 | |
| 48 | - for($i = 1; $i <= $nbMessages; $i++) { |
|
| 49 | - $this->messages[] = "expansion_emotes.$command" . $i; |
|
| 48 | + for ($i = 1; $i <= $nbMessages; $i++) { |
|
| 49 | + $this->messages[] = "expansion_emotes.$command".$i; |
|
| 50 | 50 | } |
| 51 | 51 | } |
| 52 | 52 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | /** |
| 63 | 63 | * Get a chat command. |
| 64 | 64 | * |
| 65 | - * @param $command |
|
| 65 | + * @param string $command |
|
| 66 | 66 | * @return ChatCommandInterface|null |
| 67 | 67 | */ |
| 68 | 68 | public function getChatCommand($command) |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | 74 | * |
| 75 | - * @param $pluginId |
|
| 75 | + * @param string $pluginId |
|
| 76 | 76 | * @param $cmdTxt |
| 77 | 77 | * @param ChatCommandInterface $command |
| 78 | 78 | * |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | { |
| 33 | 33 | $commands = $pluginService->getChatCommands(); |
| 34 | 34 | |
| 35 | - foreach($commands as $command) |
|
| 35 | + foreach ($commands as $command) |
|
| 36 | 36 | { |
| 37 | 37 | $this->addCommand($pluginId, $command->getCommand(), $command); |
| 38 | 38 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public function deletePlugin($pluginId) |
| 51 | 51 | { |
| 52 | - if(!isset($this->commandPlugin[$pluginId])) { |
|
| 52 | + if (!isset($this->commandPlugin[$pluginId])) { |
|
| 53 | 53 | return; |
| 54 | 54 | } |
| 55 | 55 | |
@@ -87,6 +87,6 @@ discard block |
||
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | $this->commands[$cmdTxt] = $command; |
| 90 | - $this->commandPlugin[$pluginId][$cmdTxt] = $command; |
|
| 90 | + $this->commandPlugin[$pluginId][$cmdTxt] = $command; |
|
| 91 | 91 | } |
| 92 | 92 | } |
| 93 | 93 | \ No newline at end of file |
@@ -93,12 +93,12 @@ |
||
| 93 | 93 | |
| 94 | 94 | public function onPreLoop() |
| 95 | 95 | { |
| 96 | - // do nothing |
|
| 96 | + // do nothing |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | public function onPostLoop() |
| 100 | 100 | { |
| 101 | - // do nothing |
|
| 101 | + // do nothing |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $parameter = count($cmdAndArgs) > 1 ? $cmdAndArgs[1] : ''; |
| 63 | 63 | |
| 64 | 64 | // Internal dedicated serer command to ignore. |
| 65 | - if($cmdTxt === 'version') { |
|
| 65 | + if ($cmdTxt === 'version') { |
|
| 66 | 66 | return; |
| 67 | 67 | } |
| 68 | 68 | |
@@ -36,13 +36,13 @@ |
||
| 36 | 36 | Translations $translations, |
| 37 | 37 | PlayerStorage $playerStorage, |
| 38 | 38 | $colorCodes |
| 39 | - ){ |
|
| 39 | + ) { |
|
| 40 | 40 | $this->connection = $connection; |
| 41 | 41 | $this->translations = $translations; |
| 42 | 42 | $this->playerStorage = $playerStorage; |
| 43 | 43 | |
| 44 | 44 | foreach ($colorCodes as $code => $colorCode) { |
| 45 | - $this->colorCodes["{" . $code . "}"] = '$z' . $colorCode; |
|
| 45 | + $this->colorCodes["{".$code."}"] = '$z'.$colorCode; |
|
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | |