Completed
Pull Request — master (#150)
by De Cramer
03:29
created
src/eXpansion/Bundle/Maps/Plugins/ManiaExchange.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -320,7 +320,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -227,8 +227,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Helpers/FileSystem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.