Passed
Push — master ( 773e28...7e8ddc )
by Joas
13:16 queued 11s
created
lib/public/AppFramework/Http/Template/PublicTemplateResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
 			}
99 99
 			$this->headerActions[] = $action;
100 100
 		}
101
-		usort($this->headerActions, function (IMenuAction $a, IMenuAction $b) {
101
+		usort($this->headerActions, function(IMenuAction $a, IMenuAction $b) {
102 102
 			return $a->getPriority() > $b->getPriority();
103 103
 		});
104 104
 	}
Please login to merge, or discard this patch.
lib/private/Collaboration/Collaborators/RemotePlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 							$searchResult->markExactIdMatch($resultType);
113 113
 						}
114 114
 						$result['exact'][] = [
115
-							'label' => $contact['FN'] . " ($cloudId)",
115
+							'label' => $contact['FN']." ($cloudId)",
116 116
 							'uuid' => $contact['UID'],
117 117
 							'name' => $contact['FN'],
118 118
 							'type' => $cloudIdType,
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 						];
125 125
 					} else {
126 126
 						$result['wide'][] = [
127
-							'label' => $contact['FN'] . " ($cloudId)",
127
+							'label' => $contact['FN']." ($cloudId)",
128 128
 							'uuid' => $contact['UID'],
129 129
 							'name' => $contact['FN'],
130 130
 							'type' => $cloudIdType,
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 				$localUser = $this->userManager->get($remoteUser);
155 155
 				if ($localUser === null || $search !== $localUser->getCloudId()) {
156 156
 					$result['exact'][] = [
157
-						'label' => $remoteUser . " ($serverUrl)",
157
+						'label' => $remoteUser." ($serverUrl)",
158 158
 						'uuid' => $remoteUser,
159 159
 						'name' => $remoteUser,
160 160
 						'value' => [
Please login to merge, or discard this patch.
apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
 		$httpClient = $this->clientService->newClient();
195 195
 
196 196
 		try {
197
-			$response = $httpClient->post($remote . '/index.php/apps/federatedfilesharing/createFederatedShare',
197
+			$response = $httpClient->post($remote.'/index.php/apps/federatedfilesharing/createFederatedShare',
198 198
 				[
199 199
 					'body' =>
200 200
 						[
Please login to merge, or discard this patch.
apps/updatenotification/lib/Command/Check.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 		// Server
69 69
 		$r = $this->updateChecker->getUpdateState();
70 70
 		if (isset($r['updateAvailable']) && $r['updateAvailable']) {
71
-			$output->writeln($r['updateVersionString'] . ' is available. Get more information on how to update at '. $r['updateLink'] . '.');
71
+			$output->writeln($r['updateVersionString'].' is available. Get more information on how to update at '.$r['updateLink'].'.');
72 72
 			$updatesAvailableCount += 1;
73 73
 		}
74 74
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 		foreach ($apps as $app) {
79 79
 			$update = $this->installer->isUpdateAvailable($app);
80 80
 			if ($update !== false) {
81
-				$output->writeln('Update for ' . $app . ' to version ' . $update . ' is available.');
81
+				$output->writeln('Update for '.$app.' to version '.$update.' is available.');
82 82
 				$updatesAvailableCount += 1;
83 83
 			}
84 84
 		}
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 		} elseif ($updatesAvailableCount === 1) {
90 90
 			$output->writeln('<comment>1 update available</comment>');
91 91
 		} else {
92
-			$output->writeln('<comment>' . $updatesAvailableCount . ' updates available</comment>');
92
+			$output->writeln('<comment>'.$updatesAvailableCount.' updates available</comment>');
93 93
 		}
94 94
 
95 95
 		return 0;
Please login to merge, or discard this patch.
apps/dav/lib/Connector/PublicAuth.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,13 +105,13 @@
 block discarded – undo
105 105
 				if ($this->shareManager->checkPassword($share, $password)) {
106 106
 					return true;
107 107
 				} elseif ($this->session->exists('public_link_authenticated')
108
-					&& $this->session->get('public_link_authenticated') === (string)$share->getId()) {
108
+					&& $this->session->get('public_link_authenticated') === (string) $share->getId()) {
109 109
 					return true;
110 110
 				} else {
111 111
 					if (in_array('XMLHttpRequest', explode(',', $this->request->getHeader('X-Requested-With')))) {
112 112
 						// do not re-authenticate over ajax, use dummy auth name to prevent browser popup
113 113
 						http_response_code(401);
114
-						header('WWW-Authenticate','DummyBasic realm="' . $this->realm . '"');
114
+						header('WWW-Authenticate', 'DummyBasic realm="'.$this->realm.'"');
115 115
 						throw new \Sabre\DAV\Exception\NotAuthenticated('Cannot authenticate over ajax calls');
116 116
 					}
117 117
 					return false;
Please login to merge, or discard this patch.
lib/private/Lock/MemcacheLockingProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
 		} elseif ($existing === 'exclusive') {
144 144
 			return $existing;
145 145
 		} else {
146
-			return $existing . ' shared locks';
146
+			return $existing.' shared locks';
147 147
 		}
148 148
 	}
149 149
 }
Please login to merge, or discard this patch.
lib/public/Collaboration/Collaborators/SearchResultType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 	 * @since 13.0.0
60 60
 	 */
61 61
 	protected function getValidatedType($type) {
62
-		$type = trim((string)$type);
62
+		$type = trim((string) $type);
63 63
 
64 64
 		if ($type === '') {
65 65
 			throw new \InvalidArgumentException('Type must not be empty');
Please login to merge, or discard this patch.
lib/public/AppFramework/Db/Entity.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 		$instance = new static();
52 52
 
53 53
 		foreach ($params as $key => $value) {
54
-			$method = 'set' . ucfirst($key);
54
+			$method = 'set'.ucfirst($key);
55 55
 			$instance->$method($value);
56 56
 		}
57 57
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
 		foreach ($row as $key => $value) {
71 71
 			$prop = ucfirst($instance->columnToProperty($key));
72
-			$setter = 'set' . $prop;
72
+			$setter = 'set'.$prop;
73 73
 			$instance->$setter($value);
74 74
 		}
75 75
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 			}
115 115
 			$this->$name = $args[0];
116 116
 		} else {
117
-			throw new \BadFunctionCallException($name .
117
+			throw new \BadFunctionCallException($name.
118 118
 				' is not a valid attribute');
119 119
 		}
120 120
 	}
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 		if (property_exists($this, $name)) {
129 129
 			return $this->$name;
130 130
 		} else {
131
-			throw new \BadFunctionCallException($name .
131
+			throw new \BadFunctionCallException($name.
132 132
 				' is not a valid attribute');
133 133
 		}
134 134
 	}
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 		} elseif ($this->isGetterForBoolProperty($methodName)) {
150 150
 			return $this->getter(lcfirst(substr($methodName, 2)));
151 151
 		} else {
152
-			throw new \BadFunctionCallException($methodName .
152
+			throw new \BadFunctionCallException($methodName.
153 153
 				' does not exist');
154 154
 		}
155 155
 	}
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 			if ($column === null) {
214 214
 				$column = $part;
215 215
 			} else {
216
-				$column .= '_' . lcfirst($part);
216
+				$column .= '_'.lcfirst($part);
217 217
 			}
218 218
 		}
219 219
 
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 			// trim '-'
260 260
 			return trim($value, '-');
261 261
 		} else {
262
-			throw new \BadFunctionCallException($attributeName .
262
+			throw new \BadFunctionCallException($attributeName.
263 263
 				' is not a valid attribute');
264 264
 		}
265 265
 	}
Please login to merge, or discard this patch.
lib/private/IntegrityCheck/Helpers/FileAccessHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	public function file_put_contents(string $filename, string $data): int {
66 66
 		$bytesWritten = @file_put_contents($filename, $data);
67 67
 		if ($bytesWritten === false || $bytesWritten !== \strlen($data)) {
68
-			throw new \Exception('Failed to write into ' . $filename);
68
+			throw new \Exception('Failed to write into '.$filename);
69 69
 		}
70 70
 		return $bytesWritten;
71 71
 	}
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	 */
85 85
 	public function assertDirectoryExists(string $path) {
86 86
 		if (!is_dir($path)) {
87
-			throw new \Exception('Directory ' . $path . ' does not exist.');
87
+			throw new \Exception('Directory '.$path.' does not exist.');
88 88
 		}
89 89
 	}
90 90
 }
Please login to merge, or discard this patch.