Completed
Push — master ( ad12aa...1c1eb2 )
by De Cramer
10s
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/Framework/Gui/Components/uiLabel.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -66,6 +66,9 @@
 block discarded – undo
66 66
         return parent::render($domDocument);
67 67
     }
68 68
 
69
+    /**
70
+     * @param boolean $translate
71
+     */
69 72
     public function setTranslate($translate)
70 73
     {
71 74
         if ($translate) {
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Helpers/Structures/HttpRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
30 30
      */
31 31
     public function __toString()
32 32
     {
33
-        return (string)$this->response['response'];
33
+        return (string) $this->response['response'];
34 34
     }
35 35
 }
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/Framework/Core/Helpers/JobRunner/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         $curlJob->setUrl($url);
45 45
         $curlJob->setOptions($options);
46 46
         if (is_object($parameters)) {
47
-            $parameters = (array)$parameters;
47
+            $parameters = (array) $parameters;
48 48
         }
49 49
         $curlJob->setParameters($parameters);
50 50
         $curlJob->setAdditionalData($additionalData);
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Menu/Services/Factories/ItemParentFactory.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function supports($class)
41 41
     {
42
-       return $class == ParentItem::class;
42
+        return $class == ParentItem::class;
43 43
     }
44 44
 
45 45
     /**
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use eXpansion\Bundle\Menu\Services\ItemBuilder;
8 8
 use eXpansion\Bundle\Menu\Services\ItemFactoryInterface;
9 9
 use eXpansion\Framework\AdminGroups\Helpers\AdminGroups;
10
-use FML\Controls\Quad;
11 10
 
12 11
 /**
13 12
  * Class ItemParentFactory
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Admin/Plugins/Gui/ScriptSettingsWindowFactory.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,9 +12,7 @@
 block discarded – undo
12 12
 use eXpansion\Framework\Core\Plugins\Gui\GridWindowFactory;
13 13
 use eXpansion\Framework\Core\Services\Console;
14 14
 use FML\Controls\Frame;
15
-use FML\Script\Features\ScriptFeature;
16 15
 use FML\Script\Script;
17
-use FML\Script\ScriptLabel;
18 16
 use Maniaplanet\DedicatedServer\Connection;
19 17
 
20 18
 
Please login to merge, or discard this patch.
Framework/GameTrackmania/DataProviders/MethodGetScoresDataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     public function request()
52 52
     {
53
-        $this->connection->triggerModeScriptEvent("Trackmania.GetScores", ["responseid" => (string)time()]);
53
+        $this->connection->triggerModeScriptEvent("Trackmania.GetScores", ["responseid" => (string) time()]);
54 54
     }
55 55
 
56 56
     /**
Please login to merge, or discard this patch.