Passed
Push — master ( 773e28...7e8ddc )
by Joas
13:16 queued 11s
created
lib/private/MemoryInfo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 		if ($iniValue === '-1') {
53 53
 			return -1;
54 54
 		} elseif (is_numeric($iniValue) === true) {
55
-			return (int)$iniValue;
55
+			return (int) $iniValue;
56 56
 		} else {
57 57
 			return $this->memoryLimitToBytes($iniValue);
58 58
 		}
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 	 */
67 67
 	private function memoryLimitToBytes(string $memoryLimit): int {
68 68
 		$last = strtolower(substr($memoryLimit, -1));
69
-		$memoryLimit = (int)substr($memoryLimit, 0, -1);
69
+		$memoryLimit = (int) substr($memoryLimit, 0, -1);
70 70
 
71 71
 		// intended fall trough
72 72
 		switch ($last) {
Please login to merge, or discard this patch.
lib/private/Preview/TXT.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 			return null;
59 59
 		}
60 60
 
61
-		$content = stream_get_contents($content,3000);
61
+		$content = stream_get_contents($content, 3000);
62 62
 
63 63
 		//don't create previews of empty text files
64 64
 		if (trim($content) === '') {
Please login to merge, or discard this patch.
lib/private/Log/Rotate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
 	public function run($dummy) {
40 40
 		$systemConfig = \OC::$server->getSystemConfig();
41
-		$this->filePath = $systemConfig->getValue('logfile', $systemConfig->getValue('datadirectory', \OC::$SERVERROOT . '/data') . '/nextcloud.log');
41
+		$this->filePath = $systemConfig->getValue('logfile', $systemConfig->getValue('datadirectory', \OC::$SERVERROOT.'/data').'/nextcloud.log');
42 42
 
43 43
 		$this->maxSize = \OC::$server->getConfig()->getSystemValue('log_rotate_size', 100 * 1024 * 1024);
44 44
 		if ($this->shouldRotateBySize()) {
Please login to merge, or discard this patch.
lib/private/Log/Systemdlog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,6 +76,6 @@
 block discarded – undo
76 76
 		$journal_level = $this->levels[$level];
77 77
 		sd_journal_send('PRIORITY='.$journal_level,
78 78
 				'SYSLOG_IDENTIFIER='.$this->syslogId,
79
-				'MESSAGE=' . $this->logDetailsAsJSON($app, $message, $level));
79
+				'MESSAGE='.$this->logDetailsAsJSON($app, $message, $level));
80 80
 	}
81 81
 }
Please login to merge, or discard this patch.
lib/private/Avatar/UserAvatar.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
 		$this->remove(true);
106 106
 		$type = $this->getAvatarImageType($img);
107
-		$file = $this->folder->newFile('avatar.' . $type);
107
+		$file = $this->folder->newFile('avatar.'.$type);
108 108
 		$file->putContent($data);
109 109
 
110 110
 		try {
@@ -257,9 +257,9 @@  discard block
 block discarded – undo
257 257
 		}
258 258
 
259 259
 		if ($size === -1) {
260
-			$path = 'avatar.' . $ext;
260
+			$path = 'avatar.'.$ext;
261 261
 		} else {
262
-			$path = 'avatar.' . $size . '.' . $ext;
262
+			$path = 'avatar.'.$size.'.'.$ext;
263 263
 		}
264 264
 
265 265
 		try {
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
 				}
276 276
 			} else {
277 277
 				$avatar = new OC_Image();
278
-				$file = $this->folder->getFile('avatar.' . $ext);
278
+				$file = $this->folder->getFile('avatar.'.$ext);
279 279
 				$avatar->loadFromData($file->getContent());
280 280
 				$avatar->resize($size);
281 281
 				$data = $avatar->data();
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 				$file = $this->folder->newFile($path);
286 286
 				$file->putContent($data);
287 287
 			} catch (NotPermittedException $e) {
288
-				$this->logger->error('Failed to save avatar for ' . $this->user->getUID());
288
+				$this->logger->error('Failed to save avatar for '.$this->user->getUID());
289 289
 				throw new NotFoundException();
290 290
 			}
291 291
 		}
Please login to merge, or discard this patch.
lib/private/App/AppStore/Fetcher/AppFetcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
 			if (isset($versions[0])) {
132 132
 				$highestVersion = $versions[0];
133 133
 				foreach ($releases as $release) {
134
-					if ((string)$release['version'] === (string)$highestVersion) {
134
+					if ((string) $release['version'] === (string) $highestVersion) {
135 135
 						$response['data'][$dataKey]['releases'] = [$release];
136 136
 						break;
137 137
 					}
Please login to merge, or discard this patch.
lib/private/App/InfoParser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 		}
55 55
 
56 56
 		if ($this->cache !== null) {
57
-			$fileCacheKey = $file . filemtime($file);
57
+			$fileCacheKey = $file.filemtime($file);
58 58
 			if ($cachedValue = $this->cache->get($fileCacheKey)) {
59 59
 				return json_decode($cachedValue, true);
60 60
 			}
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 	 */
231 231
 	public function xmlToArray($xml) {
232 232
 		if (!$xml->children()) {
233
-			return (string)$xml;
233
+			return (string) $xml;
234 234
 		}
235 235
 
236 236
 		$array = [];
@@ -247,15 +247,15 @@  discard block
 block discarded – undo
247 247
 					'@attributes' => [],
248 248
 				];
249 249
 				if (!count($node->children())) {
250
-					$value = (string)$node;
250
+					$value = (string) $node;
251 251
 					if (!empty($value)) {
252
-						$data['@value'] = (string)$node;
252
+						$data['@value'] = (string) $node;
253 253
 					}
254 254
 				} else {
255 255
 					$data = array_merge($data, $this->xmlToArray($node));
256 256
 				}
257 257
 				foreach ($attributes as $attr => $value) {
258
-					$data['@attributes'][$attr] = (string)$value;
258
+					$data['@attributes'][$attr] = (string) $value;
259 259
 				}
260 260
 
261 261
 				if ($totalElement > 1) {
Please login to merge, or discard this patch.
lib/private/Security/RateLimiting/Backend/MemoryCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 	 */
62 62
 	private function hash(string $methodIdentifier,
63 63
 						  string $userIdentifier): string {
64
-		return hash('sha512', $methodIdentifier . $userIdentifier);
64
+		return hash('sha512', $methodIdentifier.$userIdentifier);
65 65
 	}
66 66
 
67 67
 	/**
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 		$existingAttempts = array_values($existingAttempts);
123 123
 
124 124
 		// Store the new attempt
125
-		$existingAttempts[] = (string)$currentTime;
125
+		$existingAttempts[] = (string) $currentTime;
126 126
 		$this->cache->set($identifier, json_encode($existingAttempts));
127 127
 	}
128 128
 }
Please login to merge, or discard this patch.
lib/private/Security/IdentityProof/Manager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 	 */
145 145
 	public function getKey(IUser $user): Key {
146 146
 		$uid = $user->getUID();
147
-		return $this->retrieveKey('user-' . $uid);
147
+		return $this->retrieveKey('user-'.$uid);
148 148
 	}
149 149
 
150 150
 	/**
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 		if ($instanceId === null) {
159 159
 			throw new \RuntimeException('no instance id!');
160 160
 		}
161
-		return $this->retrieveKey('system-' . $instanceId);
161
+		return $this->retrieveKey('system-'.$instanceId);
162 162
 	}
163 163
 
164 164
 	private function logOpensslError(): void {
@@ -166,6 +166,6 @@  discard block
 block discarded – undo
166 166
 		while ($error = openssl_error_string()) {
167 167
 			$errors[] = $error;
168 168
 		}
169
-		$this->logger->critical('Something is wrong with your openssl setup: ' . implode(', ', $errors));
169
+		$this->logger->critical('Something is wrong with your openssl setup: '.implode(', ', $errors));
170 170
 	}
171 171
 }
Please login to merge, or discard this patch.