Completed
Pull Request — master (#194)
by De Cramer
18:20 queued 02:58
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/AdminChat/ChatCommand/AdminShuffleCommand.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use eXpansion\Framework\AdminGroups\Helpers\AdminGroups;
6 6
 use eXpansion\Framework\AdminGroups\Model\AbstractAdminChatCommand;
7 7
 use eXpansion\Framework\Core\Helpers\ChatNotification;
8
-use eXpansion\Framework\Core\Helpers\Time;
9 8
 use eXpansion\Framework\Core\Storage\MapStorage;
10 9
 use eXpansion\Framework\Core\Storage\PlayerStorage;
11 10
 use Maniaplanet\DedicatedServer\Connection;
Please login to merge, or discard this patch.
src/eXpansion/Bundle/CustomUi/Plugins/Gui/CustomScoreboardWidget.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,6 @@
 block discarded – undo
21 21
      * @param                      $posX
22 22
      * @param                      $posY
23 23
      * @param WidgetFactoryContext $context
24
-     * @param Dispatcher           $dispatcher
25
-     * @param PlayerStorage        $playerStorage
26 24
      */
27 25
     public function __construct(
28 26
         $name,
Please login to merge, or discard this patch.
src/eXpansion/Bundle/AdminChat/ChatCommand/OneParameterCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@
 block discarded – undo
90 90
 
91 91
         $this->description = 'expansion_admin_chat.'.strtolower($functionName).'.description';
92 92
         $this->chatMessage = 'expansion_admin_chat.'.strtolower($functionName).'.msg';
93
-        $this->functionName = (string)$functionName;
94
-        $this->parameterDescription = (string)$parameterDescription;
93
+        $this->functionName = (string) $functionName;
94
+        $this->parameterDescription = (string) $parameterDescription;
95 95
     }
96 96
 
97 97
 
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Players/Plugins/Gui/PlayersWindow.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         }
117 117
 
118 118
 
119
-        $frame = Frame::create();;
119
+        $frame = Frame::create(); ;
120 120
         $frame->setPosition(120, -16);
121 121
 
122 122
         $manialink->setData("playerFrame", $frame);
@@ -325,23 +325,23 @@  discard block
 block discarded – undo
325 325
         }
326 326
 
327 327
         $actions = [
328
-            "mute" => (string)$this->actionFactory->createManialinkAction($manialink, [$this, 'callbackIgnore'],
328
+            "mute" => (string) $this->actionFactory->createManialinkAction($manialink, [$this, 'callbackIgnore'],
329 329
                 [
330 330
                     "login" => $login,
331 331
                 ]),
332
-            "kick" => (string)$this->actionFactory->createManialinkAction($manialink, [$this, 'callbackKick'],
332
+            "kick" => (string) $this->actionFactory->createManialinkAction($manialink, [$this, 'callbackKick'],
333 333
                 [
334 334
                     "login" => $login,
335 335
                 ]),
336
-            "ban" => (string)$this->actionFactory->createManialinkAction($manialink, [$this, 'callbackBan'],
336
+            "ban" => (string) $this->actionFactory->createManialinkAction($manialink, [$this, 'callbackBan'],
337 337
                 [
338 338
                     "login" => $login,
339 339
                 ]),
340
-            "black" => (string)$this->actionFactory->createManialinkAction($manialink, [$this, 'callbackBlack'],
340
+            "black" => (string) $this->actionFactory->createManialinkAction($manialink, [$this, 'callbackBlack'],
341 341
                 [
342 342
                     "login" => $login,
343 343
                 ]),
344
-            "guest" => (string)$this->actionFactory->createManialinkAction($manialink, [$this, 'callbackGuest'],
344
+            "guest" => (string) $this->actionFactory->createManialinkAction($manialink, [$this, 'callbackGuest'],
345 345
                 [
346 346
                     "login" => $login,
347 347
                 ]),
Please login to merge, or discard this patch.
src/eXpansion/Framework/Gui/Layouts/layoutLine.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
186 186
     }
187 187
 
188 188
     /**
189
-     * @return mixed
189
+     * @return double
190 190
      */
191 191
     public function getY()
192 192
     {
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Storage/PlayerStorage.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@
 block discarded – undo
190 190
 
191 191
     public function onPostLoop()
192 192
     {
193
-       // do nothing
193
+        // do nothing
194 194
     }
195 195
 
196 196
     public function onEverySecond()
Please login to merge, or discard this patch.
src/eXpansion/Bundle/CustomUi/Plugins/CustomUi.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -213,11 +213,11 @@
 block discarded – undo
213 213
 
214 214
     public function onPlayerInfoChanged(Player $oldPlayer, Player $player)
215 215
     {
216
-      // do nothing
216
+        // do nothing
217 217
     }
218 218
 
219 219
     public function onPlayerAlliesChanged(Player $oldPlayer, Player $player)
220 220
     {
221
-       // do nothing
221
+        // do nothing
222 222
     }
223 223
 }
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.