Passed
Push — master ( e39d96...11cae9 )
by Roeland
09:27 queued 13s
created
lib/private/App/AppStore/Fetcher/Fetcher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.