Completed
Pull Request — master (#305)
by
unknown
03:43
created
eXpansion/Framework/GameManiaplanet/DataProviders/MapListDataProvider.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use eXpansion\Framework\Core\Plugins\StatusAwarePluginInterface;
7 7
 use eXpansion\Framework\Core\Services\DedicatedConnection\Factory;
8 8
 use eXpansion\Framework\Core\Storage\MapStorage;
9
-use Maniaplanet\DedicatedServer\Connection;
10 9
 use Maniaplanet\DedicatedServer\Xmlrpc\IndexOutOfBoundException;
11 10
 use Maniaplanet\DedicatedServer\Xmlrpc\NextMapException;
12 11
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
         }
113 113
 
114 114
         try {
115
-            $currentMap = $this->connection->getCurrentMapInfo();  // sync better
115
+            $currentMap = $this->connection->getCurrentMapInfo(); // sync better
116 116
         } catch (\Exception $e) {
117
-            echo $e->getMessage(). "\n";
117
+            echo $e->getMessage()."\n";
118 118
 
119 119
             $currentMap = null;
120 120
         }
@@ -130,9 +130,9 @@  discard block
 block discarded – undo
130 130
         }
131 131
 
132 132
         try {
133
-            $nextMap = $this->connection->getNextMapInfo();  // sync better
133
+            $nextMap = $this->connection->getNextMapInfo(); // sync better
134 134
         } catch (\Exception $e) {
135
-            echo $e->getMessage(). "\n";
135
+            echo $e->getMessage()."\n";
136 136
             $nextMap = null;
137 137
         }
138 138
         // next map can be false if map by index is not found..
Please login to merge, or discard this patch.