Completed
Push — master ( bbe9d4...e82ffc )
by De Cramer
10s
created
src/eXpansion/Framework/Gui/Components/Line.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/DeveloperTools/ChatCommand/Connect.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace eXpansion\Bundle\DeveloperTools\ChatCommand;
4 4
 
5
-use eXpansion\Bundle\Acme\Plugins\Test;
6 5
 use eXpansion\Bundle\DeveloperTools\Plugins\DevTools;
7 6
 use eXpansion\Framework\AdminGroups\Helpers\AdminGroups;
8 7
 use eXpansion\Framework\AdminGroups\Model\AbstractAdminChatCommand;
Please login to merge, or discard this patch.
src/eXpansion/Bundle/MxKarma/Plugins/MxKarma.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,8 +120,8 @@
 block discarded – undo
120 120
 
121 121
     /**
122 122
      * sets vote value
123
-     * @param $login
124
-     * @param $vote
123
+     * @param string $login
124
+     * @param integer $vote
125 125
      */
126 126
     public function setVote($login, $vote)
127 127
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
             "vote" => $vote,
134 134
         ];
135 135
 
136
-        $this->changedVotes[$player->getLogin()] = new MxVote((object)$obj);
136
+        $this->changedVotes[$player->getLogin()] = new MxVote((object) $obj);
137 137
         $this->chatNotification->sendMessage('expansion_mxkarma.chat.votechanged', $login);
138 138
     }
139 139
 
Please login to merge, or discard this patch.
src/eXpansion/Bundle/MxKarma/Services/MxKarmaService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@
 block discarded – undo
238 238
      */
239 239
     public function getObject($data)
240 240
     {
241
-        $obj = (object)json_decode($data);
241
+        $obj = (object) json_decode($data);
242 242
         if ($obj->success === false) {
243 243
             $this->handleErrors($obj);
244 244
 
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
@@ -16,6 +16,6 @@
 block discarded – undo
16 16
     {
17 17
         $this->login = $obj->login;
18 18
         $this->nickname = $obj->nickname;
19
-        $this->vote = (int)$obj->vote;
19
+        $this->vote = (int) $obj->vote;
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
src/eXpansion/Framework/Config/Plugins/MenuItems.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
     {
74 74
         foreach ($configItems as $configId => $configItem) {
75 75
             $subItems = reset($configItem);
76
-            $path = $parentId . '/' . $configId;
77
-            $configPath = str_replace("admin/server/config/",'', $path);
78
-            $translationKey = 'expansion_config.menu.' . implode('.', explode('/', $configPath)) . '.label';
76
+            $path = $parentId.'/'.$configId;
77
+            $configPath = str_replace("admin/server/config/", '', $path);
78
+            $translationKey = 'expansion_config.menu.'.implode('.', explode('/', $configPath)).'.label';
79 79
 
80 80
             if (is_array($subItems)) {
81 81
                 $root->addChild(
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                     $path,
93 93
                     $translationKey,
94 94
                     'admin_config', // Default config on each element.
95
-                    ['cmd' => '/admin config "' . $configPath . '"']
95
+                    ['cmd' => '/admin config "'.$configPath.'"']
96 96
                 );
97 97
             }
98 98
         }
Please login to merge, or discard this patch.
src/eXpansion/Framework/GameManiaplanet/DataProviders/BillDataProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
     {
24 24
         $bill = new Bill();
25 25
         $bill->stateName = $stateName;
26
-        $bill->transactionId = (int)$transactionId;
27
-        $bill->state = (int)$state;
28
-        $this->dispatch(__FUNCTION__, [(int)$billId, $bill]);
26
+        $bill->transactionId = (int) $transactionId;
27
+        $bill->state = (int) $state;
28
+        $this->dispatch(__FUNCTION__, [(int) $billId, $bill]);
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
src/eXpansion/Framework/GameCurrencyBundle/Plugins/Gui/BillWindow.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,12 +132,12 @@
 block discarded – undo
132 132
 
133 133
         $this->currencyService->sendBill(
134 134
             $bill,
135
-            function () use ($manialink, $bill) {
135
+            function() use ($manialink, $bill) {
136 136
                 $this->notifications->info("Successfully payed ".$bill->getAmount()."p to ".$bill->getReceiverlogin(),
137 137
                     [], "Success", 3500, $manialink->getUserGroup());
138 138
                 $this->closeManialink($manialink);
139 139
             },
140
-            function ($status) use ($manialink) {
140
+            function($status) use ($manialink) {
141 141
                 $this->notifications->error("Server said: ".$status,
142 142
                     [], "Error", 10500, $manialink->getUserGroup());
143 143
                 $this->closeManialink($manialink);
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Plugins/Gui/ScriptVariableUpdateFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
     /**
94 94
      * Get a variable.
95 95
      *
96
-     * @param $variable
96
+     * @param string $variable
97 97
      *
98 98
      * @return Variable
99 99
      */
Please login to merge, or discard this patch.