| @@ -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 | |
| @@ -50,7 +50,7 @@ | ||
| 50 | 50 | * Send message. | 
| 51 | 51 | * | 
| 52 | 52 | * @param string $messageId | 
| 53 | - * @param string|string[]|null $to | |
| 53 | + * @param null|string $to | |
| 54 | 54 | * @param string[] $parameters | 
| 55 | 55 | */ | 
| 56 | 56 | public function sendMessage($messageId, $to = null, $parameters = []) | 
| @@ -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 | |
| @@ -20,8 +20,6 @@ | ||
| 20 | 20 | /** | 
| 21 | 21 | * Dispatcher constructor. | 
| 22 | 22 | * | 
| 23 | - * @param DataProviderManager $dataProviderManager | |
| 24 | - * @param PluginManager $pluginManager | |
| 25 | 23 | */ | 
| 26 | 24 | public function __construct(Console $console) | 
| 27 | 25 |      { | 
| @@ -500,7 +500,7 @@ | ||
| 500 | 500 | } | 
| 501 | 501 | |
| 502 | 502 | /** | 
| 503 | - * @param \Maniaplanet\DedicatedServer\Structures\Player|array $data | |
| 503 | + * @param \Maniaplanet\DedicatedServer\Structures\PlayerInfo $data | |
| 504 | 504 | * | 
| 505 | 505 | * @return $this | 
| 506 | 506 | */ | 
| @@ -75,7 +75,7 @@ discard block | ||
| 75 | 75 |          $cmdAndArgs = explode(' ', $text); | 
| 76 | 76 | |
| 77 | 77 | // Internal dedicated serer command to ignore. | 
| 78 | -        if($cmdAndArgs[0] === 'version') { | |
| 78 | +        if ($cmdAndArgs[0] === 'version') { | |
| 79 | 79 | return; | 
| 80 | 80 | } | 
| 81 | 81 | |
| @@ -91,7 +91,7 @@ discard block | ||
| 91 | 91 | $message = $command->run($login, $this->chatOutput, $parameter); | 
| 92 | 92 |                  } catch (RuntimeException $e) { | 
| 93 | 93 | $this->chatNotification->sendMessage($e->getMessage(), $login); | 
| 94 | -                } catch(\Exception $e) { | |
| 94 | +                } catch (\Exception $e) { | |
| 95 | 95 | $this->chatNotification->sendMessage($e->getMessage(), $login); | 
| 96 | 96 | } | 
| 97 | 97 | } | 
| @@ -68,11 +68,11 @@ | ||
| 68 | 68 | $className = Manialink::class | 
| 69 | 69 |      ) { | 
| 70 | 70 |          if (is_null($posX)) { | 
| 71 | - $posX = $sizeX/-2; | |
| 71 | + $posX = $sizeX / -2; | |
| 72 | 72 | } | 
| 73 | 73 | |
| 74 | 74 |          if (is_null($posY)) { | 
| 75 | - $posY = $sizeY/2; | |
| 75 | + $posY = $sizeY / 2; | |
| 76 | 76 | } | 
| 77 | 77 | |
| 78 | 78 | $this->guiHandler = $guiHandler; | 
| @@ -78,7 +78,7 @@ | ||
| 78 | 78 | */ | 
| 79 | 79 | public function onPlayerManialinkPageAnswer($login, $actionId, array $entryValues) | 
| 80 | 80 |      { | 
| 81 | - if(isset($this->actions[$actionId])) | |
| 81 | + if (isset($this->actions[$actionId])) | |
| 82 | 82 |          { | 
| 83 | 83 | $this->actions[$actionId]->execute($login, $entryValues); | 
| 84 | 84 | } | 
| @@ -239,9 +239,9 @@ | ||
| 239 | 239 | */ | 
| 240 | 240 | public function onExpansionGroupDestroy(Group $group, $lastLogin) | 
| 241 | 241 |      { | 
| 242 | -       if (isset($this->displayeds[$group->getName()])) { | |
| 243 | - unset($this->displayeds[$group->getName()]); | |
| 244 | - } | |
| 242 | +        if (isset($this->displayeds[$group->getName()])) { | |
| 243 | + unset($this->displayeds[$group->getName()]); | |
| 244 | + } | |
| 245 | 245 | } | 
| 246 | 246 | |
| 247 | 247 | /** | 
| @@ -137,8 +137,8 @@ discard block | ||
| 137 | 137 |          try { | 
| 138 | 138 | $this->connection->executeMulticall(); | 
| 139 | 139 |          } catch (\Exception $e) { | 
| 140 | -            $this->logger->addError("Couldn't deliver all manialinks : " . $e->getMessage(), ['exception' => $e]); | |
| 141 | -            $this->console->writeln('$F00ERROR - Couldn\'t deliver all manialinks : ' . $e->getMessage()); | |
| 140 | +            $this->logger->addError("Couldn't deliver all manialinks : ".$e->getMessage(), ['exception' => $e]); | |
| 141 | +            $this->console->writeln('$F00ERROR - Couldn\'t deliver all manialinks : '.$e->getMessage()); | |
| 142 | 142 | } | 
| 143 | 143 | } | 
| 144 | 144 | |
| @@ -170,14 +170,14 @@ discard block | ||
| 170 | 170 |              foreach ($manialinks as $id => $manialink) { | 
| 171 | 171 | $logins = $manialink->getUserGroup()->getLogins(); | 
| 172 | 172 |                  if (!empty($logins)) { | 
| 173 | - yield ['logins' => $logins, 'ml' => '<manialink id="' . $id . '" />']; | |
| 173 | + yield ['logins' => $logins, 'ml' => '<manialink id="'.$id.'" />']; | |
| 174 | 174 | } | 
| 175 | 175 | } | 
| 176 | 176 | } | 
| 177 | 177 | |
| 178 | 178 |          foreach ($this->hideIndividualQueu as $login => $manialinks) { | 
| 179 | 179 |              foreach ($manialinks as $id => $manialink) { | 
| 180 | - yield ['logins' => $login, 'ml' => '<manialink id="' . $id . '" />']; | |
| 180 | + yield ['logins' => $login, 'ml' => '<manialink id="'.$id.'" />']; | |
| 181 | 181 | } | 
| 182 | 182 | } | 
| 183 | 183 | } | 
| @@ -34,7 +34,7 @@ | ||
| 34 | 34 | } | 
| 35 | 35 | |
| 36 | 36 | |
| 37 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); | |
| 37 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); | |
| 38 | 38 |          $loader->load('services.yml'); | 
| 39 | 39 |          $loader->load('data_providers.yml'); | 
| 40 | 40 |          $loader->load('storage.yml'); |