@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | 148 | * Get titlepack name such as TMStadium@nadeo |
| 149 | - * @return mixed |
|
| 149 | + * @return string |
|
| 150 | 150 | */ |
| 151 | 151 | public function getTitle() |
| 152 | 152 | { |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | /** |
| 189 | - * @param Systeminfos $systemInfo |
|
| 189 | + * @param SystemInfos $systemInfo |
|
| 190 | 190 | */ |
| 191 | 191 | public function setSystemInfo(Systeminfos $systemInfo) |
| 192 | 192 | { |
@@ -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 = ""; |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | /** |
| 137 | - * @param float|int $startY |
|
| 137 | + * @param double $startY |
|
| 138 | 138 | */ |
| 139 | 139 | public function setStartY($startY) |
| 140 | 140 | { |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | /** |
| 230 | - * @return float|int |
|
| 230 | + * @return double |
|
| 231 | 231 | */ |
| 232 | 232 | public function getWidth() |
| 233 | 233 | { |
@@ -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 | |
@@ -59,7 +59,6 @@ |
||
| 59 | 59 | * @param GameDataStorage $gameData |
| 60 | 60 | * @param PlayerStorage $playerStorage |
| 61 | 61 | * @param LoggerInterface $logger |
| 62 | - * @param string $url |
|
| 63 | 62 | * @param int $pingInterval |
| 64 | 63 | * @param int $retryInterval |
| 65 | 64 | */ |
@@ -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(), |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | protected $element; |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * @param AbstractUiElement|Control $control |
|
| 18 | + * @param Button $control |
|
| 19 | 19 | * @param string $text |
| 20 | 20 | */ |
| 21 | 21 | public function addTooltip($control, $text) |
@@ -384,7 +384,6 @@ |
||
| 384 | 384 | } |
| 385 | 385 | |
| 386 | 386 | /** |
| 387 | - * @param int $index |
|
| 388 | 387 | * @return Frame |
| 389 | 388 | */ |
| 390 | 389 | private function createNickBox() |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | $this->currencyService->sendBill( |
| 104 | 104 | $bill, |
| 105 | - function () use ($bill, $login) { |
|
| 105 | + function() use ($bill, $login) { |
|
| 106 | 106 | $player = $this->playerStorage->getPlayerInfo($login); |
| 107 | 107 | $amount = $bill->getAmount(); |
| 108 | 108 | $this->chatNotification->sendMessage( |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | ['%amount%' => $amount, '%nickname%' => $player->getNickName()] |
| 112 | 112 | ); |
| 113 | 113 | }, |
| 114 | - function ($error) use ($login) { |
|
| 114 | + function($error) use ($login) { |
|
| 115 | 115 | $this->chatNotification->sendMessage( |
| 116 | 116 | 'expansion_game_currency.donate.error', |
| 117 | 117 | $login, |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | foreach ($extensions as $extension => $description) { |
| 95 | 95 | if (!extension_loaded($extension)) { |
| 96 | 96 | $console->writeln( |
| 97 | - "<error>eXpansion needs PHP extension $extension to run. Enable it to run eXpansion => " . $description . "</error>" |
|
| 97 | + "<error>eXpansion needs PHP extension $extension to run. Enable it to run eXpansion => ".$description."</error>" |
|
| 98 | 98 | ); |
| 99 | 99 | $status = false; |
| 100 | 100 | $showIni = true; |
@@ -107,14 +107,14 @@ discard block |
||
| 107 | 107 | foreach ($recommend as $extension => $reason) { |
| 108 | 108 | if (!extension_loaded($extension)) { |
| 109 | 109 | $console->writeln( |
| 110 | - "<error>eXpansion works better with PHP extension</error> <info>$extension</info>: " . $reason . "" |
|
| 110 | + "<error>eXpansion works better with PHP extension</error> <info>$extension</info>: ".$reason."" |
|
| 111 | 111 | ); |
| 112 | 112 | $showIni = true; |
| 113 | 113 | } |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | if ($showIni) { |
| 117 | - $console->writeln('<info>[PHP] PHP is using fallowing ini file :</info> "'. php_ini_loaded_file() .'"'); |
|
| 117 | + $console->writeln('<info>[PHP] PHP is using fallowing ini file :</info> "'.php_ini_loaded_file().'"'); |
|
| 118 | 118 | sleep(5); |
| 119 | 119 | } |
| 120 | 120 | return $status; |