@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | $login = $manialink->getUserGroup()->getLogins()[0]; |
| 141 | 141 | |
| 142 | 142 | return array_map( |
| 143 | - function ($command) { |
|
| 143 | + function($command) { |
|
| 144 | 144 | /** @var AbstractChatCommand $command */ |
| 145 | 145 | return [ |
| 146 | 146 | 'command' => $command->getCommand(), |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | }, |
| 152 | 152 | array_filter( |
| 153 | 153 | $this->chatCommands->getChatCommands(), |
| 154 | - function ($command) use ($login) { |
|
| 154 | + function($command) use ($login) { |
|
| 155 | 155 | if ($command instanceof AbstractAdminChatCommand) { |
| 156 | 156 | return $command->hasPermission($login); |
| 157 | 157 | } |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | $frame->setAlign($this->hAlign, $this->vAlign); |
| 134 | 134 | $frame->setPosition($this->startX, $this->startY); |
| 135 | 135 | $frame->addClasses($this->frameClasses); |
| 136 | - // $frame->setSize($this->getWidth(), $this->getHeight()); |
|
| 136 | + // $frame->setSize($this->getWidth(), $this->getHeight()); |
|
| 137 | 137 | |
| 138 | 138 | $startY = 0; |
| 139 | 139 | |
@@ -202,7 +202,7 @@ |
||
| 202 | 202 | $entry->setPosition(900, 900) |
| 203 | 203 | ->setName($this->name); |
| 204 | 204 | |
| 205 | - $frameOptions = new LayoutRow(0, -($this->height + ($this->height / 2)),[],0); |
|
| 205 | + $frameOptions = new LayoutRow(0, -($this->height + ($this->height / 2)), [], 0); |
|
| 206 | 206 | $frameOptions->addClass('uiDropdownSelect'); |
| 207 | 207 | |
| 208 | 208 | $idx = 0; |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | "difficulties" => -1, |
| 368 | 368 | "tpack" => -1, |
| 369 | 369 | ]; |
| 370 | - $manialink->setData("params", (object)$params); |
|
| 370 | + $manialink->setData("params", (object) $params); |
|
| 371 | 371 | |
| 372 | 372 | } |
| 373 | 373 | |
@@ -420,7 +420,7 @@ discard block |
||
| 420 | 420 | public function callbackSearch(ManialinkInterface $manialink, $login, $params, $arguments) |
| 421 | 421 | { |
| 422 | 422 | |
| 423 | - $params = (object)$params; |
|
| 423 | + $params = (object) $params; |
|
| 424 | 424 | $manialink->setData('params', $params); |
| 425 | 425 | |
| 426 | 426 | $options = ""; |
@@ -27,9 +27,9 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function process(ContainerBuilder $container) |
| 29 | 29 | { |
| 30 | - $fileSytem = new Filesystem(new Local(realpath($container->getParameter('kernel.root_dir') . "/../var"))); |
|
| 30 | + $fileSytem = new Filesystem(new Local(realpath($container->getParameter('kernel.root_dir')."/../var"))); |
|
| 31 | 31 | $fileSytem->createDir('expansion'); |
| 32 | - $fileSytem = new Filesystem(new Local(realpath($container->getParameter('kernel.root_dir') . "/../var/expansion"))); |
|
| 32 | + $fileSytem = new Filesystem(new Local(realpath($container->getParameter('kernel.root_dir')."/../var/expansion"))); |
|
| 33 | 33 | |
| 34 | 34 | $this->fetchDataFromRemote($fileSytem, $container); |
| 35 | 35 | |
@@ -98,15 +98,15 @@ discard block |
||
| 98 | 98 | */ |
| 99 | 99 | protected function handshake() |
| 100 | 100 | { |
| 101 | - $key = &$this->key; |
|
| 102 | - $lastPing = &$this->lastPing; |
|
| 101 | + $key = &$this->key; |
|
| 102 | + $lastPing = &$this->lastPing; |
|
| 103 | 103 | $that = $this; |
| 104 | 104 | $logger = $this->logger; |
| 105 | 105 | |
| 106 | 106 | $query = http_build_query( |
| 107 | 107 | ['page' => 'handshake', 'server-login' => $this->gameData->getSystemInfo()->serverLogin] |
| 108 | 108 | ); |
| 109 | - $url = $this->url . '?' . $query; |
|
| 109 | + $url = $this->url.'?'.$query; |
|
| 110 | 110 | |
| 111 | 111 | $lastPing = time(); |
| 112 | 112 | $this->logger->debug("[eXpansion analytics]Starting handshake"); |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | $this->http->get( |
| 116 | 116 | $url, |
| 117 | - function (HttpResult $result) use (&$key, &$lastPing, $logger, $that) { |
|
| 117 | + function(HttpResult $result) use (&$key, &$lastPing, $logger, $that) { |
|
| 118 | 118 | $key = null; |
| 119 | 119 | |
| 120 | 120 | if ($result->getHttpCode() != '200') { |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | $query = http_build_query( |
| 158 | 158 | $data |
| 159 | 159 | ); |
| 160 | - $url = $this->url . '?' . $query; |
|
| 160 | + $url = $this->url.'?'.$query; |
|
| 161 | 161 | |
| 162 | 162 | $this->operationInProgress = true; |
| 163 | 163 | $this->lastPing = time(); |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | $logger->debug('[eXpansion analytics]Starting ping'); |
| 169 | 169 | $this->http->get( |
| 170 | 170 | $url, |
| 171 | - function (HttpResult $result) use (&$operationInProgress, &$key, $logger) { |
|
| 171 | + function(HttpResult $result) use (&$operationInProgress, &$key, $logger) { |
|
| 172 | 172 | if ($result->getHttpCode() == '200') { |
| 173 | 173 | $operationInProgress = false; |
| 174 | 174 | $logger->debug('[eXpansion analytics]Ping successfull'); |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | 'memory' => memory_get_usage(), |
| 199 | 199 | 'memory_peak' => memory_get_peak_usage(), |
| 200 | 200 | 'build' => '', |
| 201 | - 'title' => str_replace('@','_by_', $this->gameData->getVersion()->titleId), |
|
| 201 | + 'title' => str_replace('@', '_by_', $this->gameData->getVersion()->titleId), |
|
| 202 | 202 | 'game' => $this->gameData->getTitle(), |
| 203 | 203 | 'mode' => strtolower($this->gameData->getGameInfos()->scriptName), |
| 204 | 204 | 'serverOs' => $this->gameData->getServerOs(), |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use eXpansion\Framework\Core\Model\Gui\Widget; |
| 8 | 8 | use eXpansion\Framework\Core\Model\Gui\WidgetFactoryContext; |
| 9 | 9 | use eXpansion\Framework\Core\Plugins\Gui\WidgetFactory; |
| 10 | -use eXpansion\Framework\Gui\Builders\WidgetBackground; |
|
| 11 | 10 | use eXpansion\Framework\Gui\Components\Animation; |
| 12 | 11 | use eXpansion\Framework\Gui\Components\Button; |
| 13 | 12 | use eXpansion\Framework\Gui\Components\Label; |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | $buttonFrame = new Frame(); |
| 70 | 70 | $buttonFrame->setAlign("center", "center") |
| 71 | 71 | ->setPosition($this->posX + ($this->width / 2), $this->posY - ($this->height / 2), $this->posZ) |
| 72 | - ->addClasses(['uiContainer', 'uiButton']+$this->_classes) |
|
| 72 | + ->addClasses(['uiContainer', 'uiButton'] + $this->_classes) |
|
| 73 | 73 | ->addDataAttribute("action", $this->action) |
| 74 | 74 | ->setScale($this->scale); |
| 75 | 75 | |