@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | if (isset($jsonBlob['ncversion']) && $jsonBlob['ncversion'] === $this->getVersion()) { |
154 | 154 | |
155 | 155 | // If the timestamp is older than 300 seconds request the files new |
156 | - if ((int)$jsonBlob['timestamp'] > ($this->timeFactory->getTime() - self::INVALIDATE_AFTER_SECONDS)) { |
|
156 | + if ((int) $jsonBlob['timestamp'] > ($this->timeFactory->getTime() - self::INVALIDATE_AFTER_SECONDS)) { |
|
157 | 157 | return $jsonBlob['data']; |
158 | 158 | } |
159 | 159 | |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | $file->putContent(json_encode($responseJson)); |
175 | 175 | return json_decode($file->getContent(), true)['data']; |
176 | 176 | } catch (ConnectException $e) { |
177 | - $this->logger->warning('Could not connect to appstore: ' . $e->getMessage(), ['app' => 'appstoreFetcher']); |
|
177 | + $this->logger->warning('Could not connect to appstore: '.$e->getMessage(), ['app' => 'appstoreFetcher']); |
|
178 | 178 | return []; |
179 | 179 | } catch (\Exception $e) { |
180 | 180 | $this->logger->logException($e, ['app' => 'appstoreFetcher', 'level' => ILogger::WARN]); |
@@ -221,6 +221,6 @@ discard block |
||
221 | 221 | } |
222 | 222 | |
223 | 223 | protected function getEndpoint(): string { |
224 | - return $this->config->getSystemValue('appstoreurl', 'https://apps.nextcloud.com/api/v1') . '/' . $this->endpointName; |
|
224 | + return $this->config->getSystemValue('appstoreurl', 'https://apps.nextcloud.com/api/v1').'/'.$this->endpointName; |
|
225 | 225 | } |
226 | 226 | } |