@@ -320,7 +320,7 @@ |
||
| 320 | 320 | /** |
| 321 | 321 | * Remove special characters from map name |
| 322 | 322 | * |
| 323 | - * @param $string |
|
| 323 | + * @param string $string |
|
| 324 | 324 | * @return mixed |
| 325 | 325 | */ |
| 326 | 326 | protected function cleanString($string) |
@@ -227,8 +227,8 @@ discard block |
||
| 227 | 227 | |
| 228 | 228 | try { |
| 229 | 229 | $fileSystem = $this->fileSystem->getUserData(); |
| 230 | - $dir = 'Maps' . DIRECTORY_SEPARATOR . $info->titlePack; |
|
| 231 | - $file = $dir . DIRECTORY_SEPARATOR . $filename; |
|
| 230 | + $dir = 'Maps'.DIRECTORY_SEPARATOR.$info->titlePack; |
|
| 231 | + $file = $dir.DIRECTORY_SEPARATOR.$filename; |
|
| 232 | 232 | |
| 233 | 233 | if (!$fileSystem->createDir($dir)) { |
| 234 | 234 | $this->console->writeln('<error>Error while adding map!</error>'); |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | return; |
| 246 | 246 | } |
| 247 | 247 | |
| 248 | - $map = $this->connection->getMapInfo($info->titlePack . DIRECTORY_SEPARATOR . $filename); |
|
| 248 | + $map = $this->connection->getMapInfo($info->titlePack.DIRECTORY_SEPARATOR.$filename); |
|
| 249 | 249 | $this->connection->addMap($map->fileName); |
| 250 | 250 | |
| 251 | 251 | $this->jukebox->addMap($map, $data['login']); |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | 'expansion_mx.chat.dedicatedexception', |
| 267 | 267 | $group, ["%message%" => $e->getMessage()] |
| 268 | 268 | ); |
| 269 | - $this->logger->alert("Error while adding map : " . $e->getMessage(), ['exception' => $e]); |
|
| 269 | + $this->logger->alert("Error while adding map : ".$e->getMessage(), ['exception' => $e]); |
|
| 270 | 270 | } |
| 271 | 271 | } |
| 272 | 272 | |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | */ |
| 311 | 311 | private function convertMap($map) |
| 312 | 312 | { |
| 313 | - $outMap = (array)$map; |
|
| 313 | + $outMap = (array) $map; |
|
| 314 | 314 | $outMap["mapUid"] = $map->uId; |
| 315 | 315 | |
| 316 | 316 | return $outMap; |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | { |
| 70 | 70 | if (is_null($this->localAdapter)) { |
| 71 | 71 | $dir = $this->connection->getMapsDirectory(); |
| 72 | - $this->localAdapter = new \League\Flysystem\Filesystem(new Local($dir . '/../')); |
|
| 72 | + $this->localAdapter = new \League\Flysystem\Filesystem(new Local($dir.'/../')); |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | return $this->localAdapter; |