Completed
Pull Request — master (#233)
by De Cramer
20:46 queued 10:46
created
src/eXpansion/Framework/Gui/Components/uiLine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 
100 100
     public function calcAngle()
101 101
     {
102
-        $angle = (float)(atan2($this->x - $this->tx, $this->y - $this->ty));
102
+        $angle = (float) (atan2($this->x - $this->tx, $this->y - $this->ty));
103 103
         $angle += pi() / 2.0;
104 104
 
105 105
         return rad2deg($angle);
Please login to merge, or discard this patch.
src/eXpansion/Bundle/MxKarma/Plugins/MxKarma.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         PlayerStorage $playerStorage
80 80
     ) {
81 81
 
82
-        $this->config = (object)Yaml::parse(file_get_contents('./app/config/plugins/mxkarma.yml'))['parameters'];
82
+        $this->config = (object) Yaml::parse(file_get_contents('./app/config/plugins/mxkarma.yml'))['parameters'];
83 83
         $this->console = $console;
84 84
         $this->dispatcher = $dispatcher;
85 85
         $this->chatNotification = $chatNotification;
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             "vote" => $vote,
98 98
         ];
99 99
 
100
-        $this->changedVotes[$player->getLogin()] = new MxVote((object)$obj);
100
+        $this->changedVotes[$player->getLogin()] = new MxVote((object) $obj);
101 101
         $this->chatNotification->sendMessage('expansion_mxkarma.chat.votechanged', $login);
102 102
     }
103 103
 
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public function setStatus($status)
120 120
     {
121
-       // do nothing
121
+        // do nothing
122 122
     }
123 123
 
124 124
     /**
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      */
209 209
     public function onMxKarmaVoteSave($updatedVotes)
210 210
     {
211
-       // do nothing
211
+        // do nothing
212 212
     }
213 213
 
214 214
     public function onMxKarmaDisconnect()
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      */
229 229
     public function onStartMapStart($count, $time, $restarted, Map $map)
230 230
     {
231
-       // do nothing
231
+        // do nothing
232 232
     }
233 233
 
234 234
     /**
Please login to merge, or discard this patch.
src/eXpansion/Bundle/MxKarma/Entity/MxVote.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
     public function __construct($obj)
16 16
     {
17 17
         $this->login = $obj->login;
18
-        $this->vote = (int)$obj->vote;
18
+        $this->vote = (int) $obj->vote;
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Menu/DataProviders/MenuItemProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-     * @return ParentItem|null
50
+     * @return ItemInterface|null
51 51
      */
52 52
     public function getRootItem()
53 53
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use eXpansion\Bundle\Menu\Model\Menu\ParentItem;
7 7
 use eXpansion\Bundle\Menu\Services\ItemBuilder;
8 8
 use eXpansion\Framework\Core\DataProviders\AbstractDataProvider;
9
-use FML\Controls\Quad;
10 9
 
11 10
 /**
12 11
  * Class MenuItemProvider
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Admin/Plugins/Gui/ServerSettingsWindowFactory.php 1 patch
Unused Use Statements   -9 removed lines patch added patch discarded remove patch
@@ -3,17 +3,10 @@  discard block
 block discarded – undo
3 3
 namespace eXpansion\Bundle\Admin\Plugins\Gui;
4 4
 
5 5
 use eXpansion\Framework\AdminGroups\Helpers\AdminGroups;
6
-use eXpansion\Framework\GameManiaplanet\DataProviders\Listener\ListenerInterfaceMpLegacyManialink;
7
-use eXpansion\Framework\Core\Model\Gui\Grid\DataCollectionFactory;
8
-use eXpansion\Framework\Core\Model\Gui\Grid\GridBuilder;
9
-use eXpansion\Framework\Core\Model\Gui\Grid\GridBuilderFactory;
10 6
 use eXpansion\Framework\Core\Model\Gui\ManialinkInterface;
11 7
 use eXpansion\Framework\Core\Model\Gui\WindowFactoryContext;
12
-use eXpansion\Framework\Core\Model\UserGroups\Group;
13
-use eXpansion\Framework\Core\Plugins\Gui\GridWindowFactory;
14 8
 use eXpansion\Framework\Core\Plugins\Gui\WindowFactory;
15 9
 use eXpansion\Framework\Core\Services\Console;
16
-use eXpansion\Framework\Gui\Components\uiAnimation;
17 10
 use eXpansion\Framework\Gui\Components\uiButton;
18 11
 use eXpansion\Framework\Gui\Components\uiCheckbox;
19 12
 use eXpansion\Framework\Gui\Components\uiDropdown;
@@ -22,8 +15,6 @@  discard block
 block discarded – undo
22 15
 use eXpansion\Framework\Gui\Components\uiLabel;
23 16
 use eXpansion\Framework\Gui\Components\uiTextbox;
24 17
 use FML\Controls\Frame;
25
-use FML\Controls\Label;
26
-use FML\Controls\Quad;
27 18
 use Maniaplanet\DedicatedServer\Connection;
28 19
 use Maniaplanet\DedicatedServer\Structures\ServerOptions;
29 20
 
Please login to merge, or discard this patch.
src/eXpansion/Bundle/LocalRecords/Command/GenDummyRecordsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
                     if (!in_array($x, $idsUsed)) {
170 170
                         $rec = clone $record;
171 171
                         $rec->setScore(mt_rand($map->getGoldtime(), $map->getGoldtime() * 5));
172
-                        $rec->setPlayerId($players[$x-1]->getId());
172
+                        $rec->setPlayerId($players[$x - 1]->getId());
173 173
                         $rec->save();
174 174
                         $progress->advance();
175 175
                     }
Please login to merge, or discard this patch.
GameTrackmania/DataProviders/ScriptBaseRounds/RaceDataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         }
38 38
 
39 39
         // If rounds is configured to be single laps then no need for race data. lap is sufficient.
40
-        return $nbLaps > 1;    }
40
+        return $nbLaps > 1; }
41 41
 
42 42
 
43 43
     public function onWayPoint($params)
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Maps/Services/MapInfoService.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function onEndMap(DedicatedMap $map)
95 95
     {
96
-      // do nothing
96
+        // do nothing
97 97
     }
98 98
 
99 99
     /**
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
     public function onExpansionNextMapChange($nextMap, $previousNextMap)
119 119
     {
120
-       // do nothing
120
+        // do nothing
121 121
     }
122 122
 
123 123
     protected function syncMaps()
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Players/Plugins/Gui/BanListWindow.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 namespace eXpansion\Bundle\Players\Plugins\Gui;
4
-use eXpansion\Framework\Core\Model\Gui\ManialinkInterface;
5 4
 
6 5
 /**
7 6
  * Class IgnoreListWindow
Please login to merge, or discard this patch.