@@ -76,7 +76,7 @@ |
||
76 | 76 | ); |
77 | 77 | $this->application->stopApplication(); |
78 | 78 | |
79 | - $process = new Process("bin/" . $scriptToExecute . " &"); |
|
79 | + $process = new Process("bin/".$scriptToExecute." &"); |
|
80 | 80 | $process->start(); |
81 | 81 | } |
82 | 82 | } |
83 | 83 | \ No newline at end of file |
@@ -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 | } |
@@ -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 |
@@ -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 |
@@ -92,9 +92,9 @@ |
||
92 | 92 | protected function runCommand($command, $playerLogin, SymfonyStyle $sfs) |
93 | 93 | { |
94 | 94 | $process = new Process($command); |
95 | - $process->setWorkingDirectory($this->getContainer()->getParameter('kernel.root_dir') . '/..'); |
|
95 | + $process->setWorkingDirectory($this->getContainer()->getParameter('kernel.root_dir').'/..'); |
|
96 | 96 | |
97 | - $process->run(function ($type, $buffer) use ($playerLogin, $sfs) { |
|
97 | + $process->run(function($type, $buffer) use ($playerLogin, $sfs) { |
|
98 | 98 | $this->notifyPlayer($type, $buffer, $playerLogin); |
99 | 99 | $sfs->writeln($buffer); |
100 | 100 | }); |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | "difficulties" => $this->difficultiesBox->getSelectedValue(), |
367 | 367 | "tpack" => $this->tpackBox->getSelectedValue(), |
368 | 368 | ]; |
369 | - $manialink->setData("params", (object)$params); |
|
369 | + $manialink->setData("params", (object) $params); |
|
370 | 370 | |
371 | 371 | } |
372 | 372 | |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | public function callbackSearch(ManialinkInterface $manialink, $login, $params, $arguments) |
420 | 420 | { |
421 | 421 | |
422 | - $params = (object)$params; |
|
422 | + $params = (object) $params; |
|
423 | 423 | $manialink->setData('params', $params); |
424 | 424 | |
425 | 425 | $options = ""; |
@@ -153,7 +153,7 @@ |
||
153 | 153 | $frame->setAlign($this->hAlign, $this->vAlign); |
154 | 154 | $frame->setPosition($this->posX, $this->posy); |
155 | 155 | $frame->addClasses($this->frameClasses); |
156 | - $frame->setSize($this->getWidth(), $this->getHeight()+4); |
|
156 | + $frame->setSize($this->getWidth(), $this->getHeight() + 4); |
|
157 | 157 | |
158 | 158 | $startY = $this->startY; |
159 | 159 |
@@ -202,7 +202,7 @@ |
||
202 | 202 | $entry->setPosition(900, 900) |
203 | 203 | ->setName($this->name); |
204 | 204 | |
205 | - $frameOptions = new LayoutRow(0, -$this->height,[],0, $this->height); |
|
205 | + $frameOptions = new LayoutRow(0, -$this->height, [], 0, $this->height); |
|
206 | 206 | $frameOptions->setStartY($this->height * -0.5); |
207 | 207 | $frameOptions->addClass('uiDropdownSelect'); |
208 | 208 |
@@ -110,15 +110,15 @@ discard block |
||
110 | 110 | */ |
111 | 111 | protected function handshake() |
112 | 112 | { |
113 | - $key = &$this->key; |
|
114 | - $lastPing = &$this->lastPing; |
|
113 | + $key = &$this->key; |
|
114 | + $lastPing = &$this->lastPing; |
|
115 | 115 | $that = $this; |
116 | 116 | $logger = $this->logger; |
117 | 117 | |
118 | 118 | $query = http_build_query( |
119 | 119 | ['login' => $this->gameData->getSystemInfo()->serverLogin] |
120 | 120 | ); |
121 | - $url = $this->handshakeUrl . '?' . $query; |
|
121 | + $url = $this->handshakeUrl.'?'.$query; |
|
122 | 122 | |
123 | 123 | $lastPing = time(); |
124 | 124 | $this->logger->debug("[eXpansion analytics]Starting handshake"); |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $this->http->put( |
128 | 128 | $url, |
129 | 129 | [], |
130 | - function (HttpResult $result) use (&$key, &$lastPing, $logger, $that) { |
|
130 | + function(HttpResult $result) use (&$key, &$lastPing, $logger, $that) { |
|
131 | 131 | $key = null; |
132 | 132 | if ($result->getHttpCode() != '200') { |
133 | 133 | $logger->debug('[eXpansion analytics]Handshake failed', ['http_code' => $result->getHttpCode()]); |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $query = http_build_query( |
168 | 168 | $data |
169 | 169 | ); |
170 | - $url = $this->pingUrl . '?' . $query; |
|
170 | + $url = $this->pingUrl.'?'.$query; |
|
171 | 171 | |
172 | 172 | $this->operationInProgress = true; |
173 | 173 | $this->lastPing = time(); |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | $this->http->put( |
180 | 180 | $url, |
181 | 181 | [], |
182 | - function (HttpResult $result) use (&$operationInProgress, &$key, $logger) { |
|
182 | + function(HttpResult $result) use (&$operationInProgress, &$key, $logger) { |
|
183 | 183 | if ($result->getHttpCode() == '200') { |
184 | 184 | $operationInProgress = false; |
185 | 185 | $logger->debug('[eXpansion analytics]Ping successfull'); |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | 'mysql_version' => 'unknown', |
212 | 212 | 'memory' => memory_get_usage(), |
213 | 213 | 'memory_peak' => memory_get_peak_usage(), |
214 | - 'title' => str_replace('@','_by_', $this->gameData->getVersion()->titleId), |
|
214 | + 'title' => str_replace('@', '_by_', $this->gameData->getVersion()->titleId), |
|
215 | 215 | 'game' => $this->gameData->getTitleGame(), |
216 | 216 | 'mode' => strtolower($this->gameData->getGameInfos()->scriptName), |
217 | 217 | 'serverOs' => $this->gameData->getServerOs(), |