@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | /** |
| 129 | 129 | * Get the title name, this returns a simplified title name such as TM |
| 130 | 130 | * |
| 131 | - * @return mixed |
|
| 131 | + * @return string |
|
| 132 | 132 | */ |
| 133 | 133 | public function getTitle() |
| 134 | 134 | { |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | /** |
| 171 | - * @param Systeminfos $systemInfo |
|
| 171 | + * @param SystemInfos $systemInfo |
|
| 172 | 172 | */ |
| 173 | 173 | public function setSystemInfo(Systeminfos $systemInfo) |
| 174 | 174 | { |
@@ -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(), |