Completed
Pull Request — master (#309)
by De Cramer
14:06
created
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.
src/eXpansion/Framework/GameCurrencyBundle/ChatCommand/Donate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
         $this->currencyService->sendBill(
104 104
             $bill,
105
-            function () use ($bill, $login) {
105
+            function() use ($bill, $login) {
106 106
                 $player = $this->playerStorage->getPlayerInfo($login);
107 107
                 $amount = $bill->getAmount();
108 108
                 $this->chatNotification->sendMessage(
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                     ['amount' => $amount, 'nickname' => $player->getNickName()]
112 112
                 );
113 113
             },
114
-            function ($error) use ($login) {
114
+            function($error) use ($login) {
115 115
                 $this->chatNotification->sendMessage(
116 116
                     'expansion_game_currency.donate.error',
117 117
                     $login,
Please login to merge, or discard this patch.