@@ -182,7 +182,7 @@ |
||
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | /** |
| 185 | - * @param Systeminfos $systemInfo |
|
| 185 | + * @param SystemInfos $systemInfo |
|
| 186 | 186 | */ |
| 187 | 187 | public function setSystemInfo(Systeminfos $systemInfo) |
| 188 | 188 | { |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | $this->serverCleanPhpVersion = $version[0]; |
| 82 | 82 | $this->serverMajorPhpVersion = implode( |
| 83 | 83 | '.', |
| 84 | - array_slice(explode('.', $this->serverCleanPhpVersion),0,2) |
|
| 84 | + array_slice(explode('.', $this->serverCleanPhpVersion), 0, 2) |
|
| 85 | 85 | ); |
| 86 | 86 | } |
| 87 | 87 | |
@@ -150,7 +150,7 @@ |
||
| 150 | 150 | $size = strlen($mlData['ml']); |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | - $logins = array_filter($mlData['logins'], function($value) { return $value != '';}); |
|
| 153 | + $logins = array_filter($mlData['logins'], function($value) { return $value != ''; }); |
|
| 154 | 154 | if (!empty($logins)) { |
| 155 | 155 | $this->connection->sendDisplayManialinkPage( |
| 156 | 156 | $mlData['logins'], |
@@ -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' => $this->gameData->getGameInfos()->scriptName, |
| 204 | 204 | 'serverOs' => $this->gameData->getServerOs(), |