Passed
Push — master ( 557066...971e22 )
by John
15:32 queued 12s
created
apps/dav/lib/Command/ListCalendars.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 			}
78 78
 
79 79
 			$readOnly = false;
80
-			$readOnlyIndex = '{' . \OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD . '}read-only';
80
+			$readOnlyIndex = '{'.\OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD.'}read-only';
81 81
 			if (isset($calendar[$readOnlyIndex])) {
82 82
 				$readOnly = $calendar[$readOnlyIndex];
83 83
 			}
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
 			$calendarTableData[] = [
86 86
 				$calendar['uri'],
87 87
 				$calendar['{DAV:}displayname'],
88
-				$calendar['{' . \OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD . '}owner-principal'],
89
-				$calendar['{' . \OCA\DAV\DAV\Sharing\Plugin::NS_NEXTCLOUD . '}owner-displayname'],
88
+				$calendar['{'.\OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD.'}owner-principal'],
89
+				$calendar['{'.\OCA\DAV\DAV\Sharing\Plugin::NS_NEXTCLOUD.'}owner-displayname'],
90 90
 				$readOnly ? ' x ' : ' ✓ ',
91 91
 			];
92 92
 		}
Please login to merge, or discard this patch.
apps/dav/lib/Comments/CommentsPlugin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
 		$this->server->xml->namespaceMap[self::NS_OWNCLOUD] = 'oc';
93 93
 
94
-		$this->server->xml->classMap['DateTime'] = function (Writer $writer, \DateTime $value) {
94
+		$this->server->xml->classMap['DateTime'] = function(Writer $writer, \DateTime $value) {
95 95
 			$writer->write(\Sabre\HTTP\toDate($value));
96 96
 		};
97 97
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 		// having their own comments marked as unread
126 126
 		$node->setReadMarker(null);
127 127
 
128
-		$url = rtrim($request->getUrl(), '/') . '/' . urlencode($comment->getId());
128
+		$url = rtrim($request->getUrl(), '/').'/'.urlencode($comment->getId());
129 129
 
130 130
 		$response->setHeader('Content-Location', $url);
131 131
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 			$this::REPORT_PARAM_OFFSET,
168 168
 			$this::REPORT_PARAM_TIMESTAMP
169 169
 		];
170
-		$ns = '{' . $this::NS_OWNCLOUD . '}';
170
+		$ns = '{'.$this::NS_OWNCLOUD.'}';
171 171
 		foreach ($report as $parameter) {
172 172
 			if (!in_array($parameter['name'], $acceptableParameters) || empty($parameter['value'])) {
173 173
 				continue;
@@ -183,11 +183,11 @@  discard block
 block discarded – undo
183 183
 
184 184
 		$responses = [];
185 185
 		foreach ($results as $node) {
186
-			$nodePath = $this->server->getRequestUri() . '/' . $node->comment->getId();
186
+			$nodePath = $this->server->getRequestUri().'/'.$node->comment->getId();
187 187
 			$resultSet = $this->server->getPropertiesForPath($nodePath, CommentNode::getPropertyNames());
188 188
 			if (isset($resultSet[0]) && isset($resultSet[0][200])) {
189 189
 				$responses[] = new Response(
190
-					$this->server->getBaseUri() . $nodePath,
190
+					$this->server->getBaseUri().$nodePath,
191 191
 					[200 => $resultSet[0][200]],
192 192
 					200
193 193
 				);
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 			}
235 235
 		}
236 236
 		if (is_null($actorId)) {
237
-			throw new BadRequest('Invalid actor "' .  $actorType .'"');
237
+			throw new BadRequest('Invalid actor "'.$actorType.'"');
238 238
 		}
239 239
 
240 240
 		try {
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 			throw new BadRequest('Invalid input values', 0, $e);
248 248
 		} catch (\OCP\Comments\MessageTooLongException $e) {
249 249
 			$msg = 'Message exceeds allowed character limit of ';
250
-			throw new BadRequest($msg . \OCP\Comments\IComment::MAX_MESSAGE_LENGTH, 0,	$e);
250
+			throw new BadRequest($msg.\OCP\Comments\IComment::MAX_MESSAGE_LENGTH, 0, $e);
251 251
 		}
252 252
 	}
253 253
 }
Please login to merge, or discard this patch.
apps/dav/lib/CardDAV/PhotoCache.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 			return;
122 122
 		}
123 123
 
124
-		$file = $folder->newFile('photo.' . $extension);
124
+		$file = $folder->newFile('photo.'.$extension);
125 125
 		$file->putContent($data['body']);
126 126
 	}
127 127
 
@@ -133,9 +133,9 @@  discard block
 block discarded – undo
133 133
 		$ext = $this->getExtension($folder);
134 134
 
135 135
 		if ($size === -1) {
136
-			$path = 'photo.' . $ext;
136
+			$path = 'photo.'.$ext;
137 137
 		} else {
138
-			$path = 'photo.' . $size . '.' . $ext;
138
+			$path = 'photo.'.$size.'.'.$ext;
139 139
 		}
140 140
 
141 141
 		try {
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 
148 148
 			$photo = new \OC_Image();
149 149
 			/** @var ISimpleFile $file */
150
-			$file = $folder->getFile('photo.' . $ext);
150
+			$file = $folder->getFile('photo.'.$ext);
151 151
 			$photo->loadFromData($file->getContent());
152 152
 
153 153
 			$ratio = $photo->width() / $photo->height();
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 	 * @throws NotPermittedException
176 176
 	 */
177 177
 	private function getFolder(int $addressBookId, string $cardUri, bool $createIfNotExists = true): ISimpleFolder {
178
-		$hash = md5($addressBookId . ' ' . $cardUri);
178
+		$hash = md5($addressBookId.' '.$cardUri);
179 179
 		try {
180 180
 			return $this->appData->getFolder($hash);
181 181
 		} catch (NotFoundException $e) {
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 	 */
197 197
 	private function getExtension(ISimpleFolder $folder): string {
198 198
 		foreach (self::ALLOWED_CONTENT_TYPES as $extension) {
199
-			if ($folder->fileExists('photo.' . $extension)) {
199
+			if ($folder->fileExists('photo.'.$extension)) {
200 200
 				return $extension;
201 201
 			}
202 202
 		}
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 			if (strpos($type, 'image/') === 0) {
270 270
 				return $type;
271 271
 			} else {
272
-				return 'image/' . strtolower($type);
272
+				return 'image/'.strtolower($type);
273 273
 			}
274 274
 		}
275 275
 		return '';
Please login to merge, or discard this patch.
apps/dav/lib/Files/BrowserErrorPagePlugin.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
 
100 100
 		$templateName = 'exception';
101 101
 		if ($httpCode === 403 || $httpCode === 404) {
102
-			$templateName = (string)$httpCode;
102
+			$templateName = (string) $httpCode;
103 103
 		}
104 104
 
105 105
 		$content = new OC_Template('core', $templateName, 'guest');
Please login to merge, or discard this patch.
apps/dav/lib/Server.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 		if ($request->isUserAgent([
205 205
 			'/WebDAVFS/',
206 206
 			'/OneNote/',
207
-			'/^Microsoft-WebDAV/',// Microsoft-WebDAV-MiniRedir/6.1.7601
207
+			'/^Microsoft-WebDAV/', // Microsoft-WebDAV-MiniRedir/6.1.7601
208 208
 		])) {
209 209
 			$this->server->addPlugin(new FakeLockerPlugin());
210 210
 		}
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 		$this->server->addPlugin(new SearchPlugin($lazySearchBackend));
218 218
 
219 219
 		// wait with registering these until auth is handled and the filesystem is setup
220
-		$this->server->on('beforeMethod:*', function () use ($root, $lazySearchBackend) {
220
+		$this->server->on('beforeMethod:*', function() use ($root, $lazySearchBackend) {
221 221
 			// custom properties plugin must be the last one
222 222
 			$userSession = \OC::$server->getUserSession();
223 223
 			$user = $userSession->getUser();
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 					\OC::$server->getThemingDefaults(),
296 296
 					\OC::$server->getRequest(),
297 297
 					\OC::$server->getL10N('dav'),
298
-					function () {
298
+					function() {
299 299
 						return UUIDUtil::getUUID();
300 300
 					}
301 301
 				));
Please login to merge, or discard this patch.
apps/dav/lib/BackgroundJob/BuildReminderIndexBackgroundJob.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 		$offset = (int) $arguments['offset'];
87 87
 		$stopAt = (int) $arguments['stopAt'];
88 88
 
89
-		$this->logger->info('Building calendar reminder index (' . $offset .'/' . $stopAt . ')');
89
+		$this->logger->info('Building calendar reminder index ('.$offset.'/'.$stopAt.')');
90 90
 
91 91
 		$offset = $this->buildIndex($offset, $stopAt);
92 92
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 				'offset' => $offset,
98 98
 				'stopAt' => $stopAt
99 99
 			]);
100
-			$this->logger->info('Scheduled a new BuildReminderIndexBackgroundJob with offset ' . $offset);
100
+			$this->logger->info('Scheduled a new BuildReminderIndexBackgroundJob with offset '.$offset);
101 101
 		}
102 102
 	}
103 103
 
Please login to merge, or discard this patch.
apps/dav/templates/schedule-response-error.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <div class="update">
2
-	<p class="message"><?php p($l->t('There was an error updating your attendance status.'));?></p>
3
-	<p class="message"><?php p($l->t('Please contact the organizer directly.'));?></p>
2
+	<p class="message"><?php p($l->t('There was an error updating your attendance status.')); ?></p>
3
+	<p class="message"><?php p($l->t('Please contact the organizer directly.')); ?></p>
4 4
 	<?php if (isset($_['organizer'])): ?>
5 5
 		<p class="message"><a href="<?php p($_['organizer']) ?>"><?php p(substr($_['organizer'], 7)) ?></a></p>
6 6
 	<?php endif; ?>
Please login to merge, or discard this patch.
apps/dav/bin/chunkperf.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 require '../../../../3rdparty/autoload.php';
24 24
 
25 25
 if ($argc !== 6) {
26
-	echo "Invalid number of arguments" . PHP_EOL;
26
+	echo "Invalid number of arguments".PHP_EOL;
27 27
 	exit;
28 28
 }
29 29
 
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
 	$t0 = microtime(true);
38 38
 	$result = $client->request($method, $uploadUrl, $data, $headers);
39 39
 	$t1 = microtime(true);
40
-	echo $result['statusCode'] . " - " . ($t1 - $t0) . ' seconds' . PHP_EOL;
41
-	if (!in_array($result['statusCode'],  [200, 201])) {
42
-		echo $result['body'] . PHP_EOL;
40
+	echo $result['statusCode']." - ".($t1 - $t0).' seconds'.PHP_EOL;
41
+	if (!in_array($result['statusCode'], [200, 201])) {
42
+		echo $result['body'].PHP_EOL;
43 43
 	}
44 44
 	return $result;
45 45
 }
Please login to merge, or discard this patch.
apps/workflowengine/lib/Helper/ScopeContext.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
 
50 50
 	private function evaluateScopeId(string $scopeId = null): string {
51 51
 		if ($this->scope === IManager::SCOPE_USER
52
-			&& trim((string)$scopeId) === '') {
52
+			&& trim((string) $scopeId) === '') {
53 53
 			throw new \InvalidArgumentException('user scope requires a user id');
54 54
 		}
55
-		return trim((string)$scopeId);
55
+		return trim((string) $scopeId);
56 56
 	}
57 57
 
58 58
 	/**
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
 	public function getHash(): string {
73 73
 		if ($this->hash === null) {
74
-			$this->hash = \hash('sha256', $this->getScope() . '::' . $this->getScopeId());
74
+			$this->hash = \hash('sha256', $this->getScope().'::'.$this->getScopeId());
75 75
 		}
76 76
 		return $this->hash;
77 77
 	}
Please login to merge, or discard this patch.