Completed
Push — master ( c3f7de...16f7ad )
by
unknown
04:46 queued 26s
created
src/eXpansion/Bundle/Players/Plugins/Gui/PlayersWindow.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,6 @@
 block discarded – undo
57 57
      * @param DataCollectionFactory   $dataCollectionFactory
58 58
      * @param GridBuilderFactory      $gridBuilderFactory
59 59
      * @param ChatCommandDataProvider $chatCommandDataProvider
60
-     * @param Connection              $connection
61 60
      * @param AdminGroups             $adminGroups
62 61
      */
63 62
     public function __construct(
Please login to merge, or discard this patch.
src/eXpansion/Bundle/WidgetBestCheckpoints/Plugins/BestCheckpoints.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,6 @@
 block discarded – undo
42 42
     /**
43 43
      * BestCheckpoints constructor.
44 44
      *
45
-     * @param Factory $factory
46 45
      * @param PlayerStorage $playerStorage
47 46
      * @param BestCheckpointsWidgetFactory $widget
48 47
      * @param UpdaterWidgetFactory $updater
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Helpers/ChatNotification.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use eXpansion\Framework\Core\Services\Console;
8 8
 use eXpansion\Framework\Core\Services\DedicatedConnection\Factory;
9 9
 use eXpansion\Framework\Core\Storage\PlayerStorage;
10
-use Maniaplanet\DedicatedServer\Connection;
11 10
 use Maniaplanet\DedicatedServer\InvalidArgumentException;
12 11
 use Maniaplanet\DedicatedServer\Xmlrpc\UnknownPlayerException;
13 12
 use Psr\Log\LoggerInterface;
Please login to merge, or discard this patch.
eXpansion/Framework/GameManiaplanet/DataProviders/PlayerDataProvider.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use eXpansion\Framework\Core\Services\Application;
8 8
 use eXpansion\Framework\Core\Services\DedicatedConnection\Factory;
9 9
 use eXpansion\Framework\Core\Storage\PlayerStorage;
10
-use Maniaplanet\DedicatedServer\Connection;
11 10
 use Maniaplanet\DedicatedServer\Structures\PlayerInfo;
12 11
 
13 12
 /**
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Plugins/GuiHandler.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 use eXpansion\Framework\Core\Services\DedicatedConnection\Factory;
13 13
 use eXpansion\Framework\Core\Storage\Data\Player;
14 14
 use eXpansion\Framework\GameManiaplanet\DataProviders\Listener\ListenerInterfaceMpLegacyPlayer;
15
-use Maniaplanet\DedicatedServer\Connection;
16 15
 use oliverde8\AssociativeArraySimplified\AssociativeArray;
17 16
 use Psr\Log\LoggerInterface;
18 17
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
                 $size = strlen($mlData['ml']);
165 165
             }
166 166
 
167
-            $logins = array_filter($mlData['logins'], function ($value) {
167
+            $logins = array_filter($mlData['logins'], function($value) {
168 168
                 return $value != '';
169 169
             });
170 170
 
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Services/DedicatedConnection/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                 $this->console->getSfStyleOutput()->error(
91 91
                     [
92 92
                         "Looks like your Dedicated server is either offline or has wrong config settings",
93
-                        "Error message: " . $lastExcelption->getMessage()
93
+                        "Error message: ".$lastExcelption->getMessage()
94 94
                     ]
95 95
                 );
96 96
                 $this->logger->error("Unable to open connection for Dedicated server", ["exception" => $lastExcelption]);
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
                     ]
149 149
                 );
150 150
             }
151
-        } while($attempts < $maxAttempts && !is_null($lastExcelption));
151
+        } while ($attempts < $maxAttempts && !is_null($lastExcelption));
152 152
 
153 153
         return $lastExcelption;
154 154
     }
Please login to merge, or discard this patch.
eXpansion/Framework/GameManiaplanet/DataProviders/MapListDataProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         }
112 112
 
113 113
         try {
114
-            $currentMap = $this->factory->getConnection()->getCurrentMapInfo();  // sync better
114
+            $currentMap = $this->factory->getConnection()->getCurrentMapInfo(); // sync better
115 115
         } catch (\Exception $e) {
116 116
             // fallback to use map storage
117 117
             $currentMap = $this->mapStorage->getMapByIndex($curMapIndex);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         }
129 129
 
130 130
         try {
131
-            $nextMap = $this->factory->getConnection()->getNextMapInfo();  // sync better
131
+            $nextMap = $this->factory->getConnection()->getNextMapInfo(); // sync better
132 132
         } catch (\Exception $e) {
133 133
             // fallback to use map storage
134 134
             $nextMap = $this->mapStorage->getMapByIndex($nextMapIndex);
Please login to merge, or discard this patch.
src/eXpansion/Bundle/VoteManager/Plugins/VoteManager.php 1 patch
Unused Use Statements   -6 removed lines patch added patch discarded remove patch
@@ -2,21 +2,15 @@
 block discarded – undo
2 2
 
3 3
 namespace eXpansion\Bundle\VoteManager\Plugins;
4 4
 
5
-use eXpansion\Bundle\Maps\Services\JukeboxService;
6 5
 use eXpansion\Bundle\VoteManager\Plugins\Gui\Widget\UpdateVoteWidgetFactory;
7 6
 use eXpansion\Bundle\VoteManager\Plugins\Gui\Widget\VoteWidgetFactory;
8 7
 use eXpansion\Bundle\VoteManager\Plugins\Votes\AbstractVotePlugin;
9 8
 use eXpansion\Bundle\VoteManager\Services\VoteService;
10 9
 use eXpansion\Bundle\VoteManager\Structures\Vote;
11 10
 use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceExpTimer;
12
-use eXpansion\Framework\Core\Helpers\ChatNotification;
13 11
 use eXpansion\Framework\Core\Model\UserGroups\Group;
14
-use eXpansion\Framework\Core\Services\Console;
15 12
 use eXpansion\Framework\Core\Storage\Data\Player;
16
-use eXpansion\Framework\Core\Storage\MapStorage;
17 13
 use eXpansion\Framework\GameManiaplanet\DataProviders\Listener\ListenerInterfaceMpLegacyVote;
18
-use eXpansion\Framework\GameManiaplanet\DataProviders\Listener\ListenerInterfaceMpScriptPodium;
19
-use Maniaplanet\DedicatedServer\Connection;
20 14
 
21 15
 class VoteManager implements ListenerInterfaceMpLegacyVote, ListenerInterfaceExpTimer
22 16
 {
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Listener/BaseStorageUpdateListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     public static function getSubscribedEvents()
57 57
     {
58 58
         return [
59
-            'maniaplanet.game.BeginMap' => 'onManiaplanetGameBeginMap' ,
59
+            'maniaplanet.game.BeginMap' => 'onManiaplanetGameBeginMap',
60 60
             Factory::EVENT_CONNECTED => 'onConnectionToDedicated'
61 61
         ];
62 62
     }
Please login to merge, or discard this patch.