@@ -99,7 +99,7 @@ |
||
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); |
@@ -2,7 +2,6 @@ |
||
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; |
@@ -120,8 +120,8 @@ |
||
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 | { |
@@ -133,7 +133,7 @@ |
||
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 |
@@ -238,7 +238,7 @@ |
||
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 |
@@ -16,6 +16,6 @@ |
||
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 | } |
@@ -73,9 +73,9 @@ discard block |
||
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 |
||
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 | } |
@@ -23,8 +23,8 @@ |
||
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 | } |
@@ -132,12 +132,12 @@ |
||
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); |
@@ -93,7 +93,7 @@ |
||
93 | 93 | /** |
94 | 94 | * Get a variable. |
95 | 95 | * |
96 | - * @param $variable |
|
96 | + * @param string $variable |
|
97 | 97 | * |
98 | 98 | * @return Variable |
99 | 99 | */ |