@@ -19,7 +19,7 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public function load(array $configs, ContainerBuilder $container) |
| 21 | 21 | { |
| 22 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 22 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 23 | 23 | $loader->load('chat_commands.yml'); |
| 24 | 24 | $loader->load('plugins.yml'); |
| 25 | 25 | } |
@@ -138,7 +138,7 @@ |
||
| 138 | 138 | }, |
| 139 | 139 | array_filter( |
| 140 | 140 | $this->chatCommands->getChatCommands(), |
| 141 | - function ($command) use ($login) { |
|
| 141 | + function($command) use ($login) { |
|
| 142 | 142 | if ($command instanceof AbstractAdminChatCommand) { |
| 143 | 143 | return $command->hasPermission($login); |
| 144 | 144 | } |
@@ -222,7 +222,7 @@ |
||
| 222 | 222 | } |
| 223 | 223 | } |
| 224 | 224 | |
| 225 | - return '-' . $securedBy; |
|
| 225 | + return '-'.$securedBy; |
|
| 226 | 226 | } |
| 227 | 227 | |
| 228 | 228 | return $securedBy = $this->timeFormater->timeToText(0); |
@@ -69,8 +69,8 @@ discard block |
||
| 69 | 69 | /** @var AbstractChatCommand $command */ |
| 70 | 70 | $command = $manialink->getData('command'); |
| 71 | 71 | |
| 72 | - $column1Width = $manialink->getContentFrame()->getWidth() * (2/3); |
|
| 73 | - $column2Width = $manialink->getContentFrame()->getWidth() * (1/3) - 1; |
|
| 72 | + $column1Width = $manialink->getContentFrame()->getWidth() * (2 / 3); |
|
| 73 | + $column2Width = $manialink->getContentFrame()->getWidth() * (1 / 3) - 1; |
|
| 74 | 74 | |
| 75 | 75 | /* |
| 76 | 76 | * COLUMN 1 Description of the chat command |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | $column1Width - 21, |
| 125 | 125 | [ |
| 126 | 126 | [ |
| 127 | - 'text' => "Use '/" . $this->currentCommand->getCommand() . " -h' to get help on the usage of the command.", |
|
| 127 | + 'text' => "Use '/".$this->currentCommand->getCommand()." -h' to get help on the usage of the command.", |
|
| 128 | 128 | 'width' => 1, |
| 129 | 129 | 'translatable' => false |
| 130 | 130 | |
@@ -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); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $this->name = $name; |
| 41 | 41 | $this->default = $default; |
| 42 | 42 | $this->lines = $lines; |
| 43 | - $this->setSize($width, ($lines * 5)+2); |
|
| 43 | + $this->setSize($width, ($lines * 5) + 2); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | |
| 68 | 68 | $input = new TextEdit(); |
| 69 | - $input->setSize($this->width, $this->height-2) |
|
| 69 | + $input->setSize($this->width, $this->height - 2) |
|
| 70 | 70 | ->setPosition(1, -1) |
| 71 | 71 | ->setDefault($this->default) |
| 72 | 72 | ->setAlign("left", "top") |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | WidgetFactoryContext $context, |
| 37 | 37 | ManiaScriptFactory $menuScriptFactory, |
| 38 | 38 | AdminGroups $adminGroupsHelper |
| 39 | - ){ |
|
| 39 | + ) { |
|
| 40 | 40 | parent::__construct($name, $sizeX, $sizeY, $posX, $posY, $context); |
| 41 | 41 | |
| 42 | 42 | $this->menuScriptFactory = $menuScriptFactory; |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | * |
| 28 | 28 | * @return mixed |
| 29 | 29 | */ |
| 30 | - public function onPodiumEnd($time ); |
|
| 30 | + public function onPodiumEnd($time); |
|
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | } |