@@ -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); |
@@ -5,7 +5,6 @@ |
||
| 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; |
@@ -21,8 +21,6 @@ |
||
| 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, |
@@ -90,8 +90,8 @@ |
||
| 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 | |
@@ -116,7 +116,7 @@ discard block |
||
| 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 |
||
| 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 | ]), |
@@ -186,7 +186,7 @@ |
||
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | /** |
| 189 | - * @return mixed |
|
| 189 | + * @return double |
|
| 190 | 190 | */ |
| 191 | 191 | public function getY() |
| 192 | 192 | { |
@@ -190,7 +190,7 @@ |
||
| 190 | 190 | |
| 191 | 191 | public function onPostLoop() |
| 192 | 192 | { |
| 193 | - // do nothing |
|
| 193 | + // do nothing |
|
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | public function onEverySecond() |
@@ -213,11 +213,11 @@ |
||
| 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 | } |
@@ -93,7 +93,7 @@ discard block |
||
| 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 |
||
| 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() |