Passed
Push — master ( bed972...c9ea23 )
by Joas
15:02 queued 16s
created
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/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.
lib/private/Security/CSRF/CsrfToken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 	public function getEncryptedValue(): string {
58 58
 		if ($this->encryptedValue === '') {
59 59
 			$sharedSecret = random_bytes(\strlen($this->value));
60
-			$this->encryptedValue = base64_encode($this->value ^ $sharedSecret) . ':' . base64_encode($sharedSecret);
60
+			$this->encryptedValue = base64_encode($this->value ^ $sharedSecret).':'.base64_encode($sharedSecret);
61 61
 		}
62 62
 
63 63
 		return $this->encryptedValue;
Please login to merge, or discard this patch.
lib/private/Security/CSP/ContentSecurityPolicyManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 	 */
75 75
 	public function mergePolicies(ContentSecurityPolicy $defaultPolicy,
76 76
 								  EmptyContentSecurityPolicy $originalPolicy): ContentSecurityPolicy {
77
-		foreach ((object)(array)$originalPolicy as $name => $value) {
77
+		foreach ((object) (array) $originalPolicy as $name => $value) {
78 78
 			$setter = 'set'.ucfirst($name);
79 79
 			if (\is_array($value)) {
80 80
 				$getter = 'get'.ucfirst($name);
Please login to merge, or discard this patch.
lib/private/Security/Hasher.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -96,14 +96,14 @@  discard block
 block discarded – undo
96 96
 		$alg = $this->getPrefferedAlgorithm();
97 97
 
98 98
 		if (\defined('PASSWORD_ARGON2ID') && $alg === PASSWORD_ARGON2ID) {
99
-			return 3 . '|' . password_hash($message, PASSWORD_ARGON2ID, $this->options);
99
+			return 3.'|'.password_hash($message, PASSWORD_ARGON2ID, $this->options);
100 100
 		}
101 101
 
102 102
 		if (\defined('PASSWORD_ARGON2I') && $alg === PASSWORD_ARGON2I) {
103
-			return 2 . '|' . password_hash($message, PASSWORD_ARGON2I, $this->options);
103
+			return 2.'|'.password_hash($message, PASSWORD_ARGON2I, $this->options);
104 104
 		}
105 105
 
106
-		return 1 . '|' . password_hash($message, PASSWORD_BCRYPT, $this->options);
106
+		return 1.'|'.password_hash($message, PASSWORD_BCRYPT, $this->options);
107 107
 	}
108 108
 
109 109
 	/**
@@ -114,8 +114,8 @@  discard block
 block discarded – undo
114 114
 	protected function splitHash(string $prefixedHash) {
115 115
 		$explodedString = explode('|', $prefixedHash, 2);
116 116
 		if (\count($explodedString) === 2) {
117
-			if ((int)$explodedString[0] > 0) {
118
-				return ['version' => (int)$explodedString[0], 'hash' => $explodedString[1]];
117
+			if ((int) $explodedString[0] > 0) {
118
+				return ['version' => (int) $explodedString[0], 'hash' => $explodedString[1]];
119 119
 			}
120 120
 		}
121 121
 
Please login to merge, or discard this patch.
lib/private/NavigationManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
 		$result = $this->entries;
122 122
 		if ($type !== 'all') {
123
-			$result = array_filter($this->entries, function ($entry) use ($type) {
123
+			$result = array_filter($this->entries, function($entry) use ($type) {
124 124
 				return $entry['type'] === $type;
125 125
 			});
126 126
 		}
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 	 * @return array
136 136
 	 */
137 137
 	private function proceedNavigation(array $list): array {
138
-		uasort($list, function ($a, $b) {
138
+		uasort($list, function($a, $b) {
139 139
 			if (isset($a['order']) && isset($b['order'])) {
140 140
 				return ($a['order'] < $b['order']) ? -1 : 1;
141 141
 			} elseif (isset($a['order']) || isset($b['order'])) {
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 					continue;
289 289
 				}
290 290
 				$l = $this->l10nFac->get($app);
291
-				$id = $nav['id'] ?? $app . ($key === 0 ? '' : $key);
291
+				$id = $nav['id'] ?? $app.($key === 0 ? '' : $key);
292 292
 				$order = isset($nav['order']) ? $nav['order'] : 100;
293 293
 				$type = isset($nav['type']) ? $nav['type'] : 'link';
294 294
 				$route = $nav['route'] !== '' ? $this->urlGenerator->linkToRoute($nav['route']) : '';
Please login to merge, or discard this patch.
lib/private/Collaboration/Collaborators/MailPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 						$emailAddressType = $emailAddressData['type'];
100 100
 					}
101 101
 					if (isset($contact['FN'])) {
102
-						$displayName = $contact['FN'] . ' (' . $emailAddress . ')';
102
+						$displayName = $contact['FN'].' ('.$emailAddress.')';
103 103
 					}
104 104
 					$exactEmailMatch = strtolower($emailAddress) === $lowerSearch;
105 105
 
Please login to merge, or discard this patch.