Completed
Push — master ( 3acc4f...dc910c )
by
unknown
24:17
created
lib/private/Lock/DBLockingProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 			->from('file_locks')
114 114
 			->where($query->expr()->eq('key', $query->createNamedParameter($path)));
115 115
 		$result = $query->executeQuery();
116
-		$lockValue = (int)$result->fetchOne();
116
+		$lockValue = (int) $result->fetchOne();
117 117
 		if ($type === self::LOCK_SHARED) {
118 118
 			if ($this->isLocallyLocked($path)) {
119 119
 				// if we have a shared lock we kept open locally but it's released we always have at least 1 shared lock in the db
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 		}
248 248
 		// since we keep shared locks we need to manually clean those
249 249
 		$lockedPaths = array_keys($this->sharedLocks);
250
-		$lockedPaths = array_filter($lockedPaths, function ($path) {
250
+		$lockedPaths = array_filter($lockedPaths, function($path) {
251 251
 			return $this->sharedLocks[$path];
252 252
 		});
253 253
 
Please login to merge, or discard this patch.
lib/private/Diagnostics/QueryLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 	public function stopQuery() {
70 70
 		if ($this->activated && $this->activeQuery) {
71 71
 			$this->activeQuery->end(microtime(true));
72
-			$this->queries[(string)$this->index] = $this->activeQuery;
72
+			$this->queries[(string) $this->index] = $this->activeQuery;
73 73
 			$this->index++;
74 74
 			$this->activeQuery = null;
75 75
 		}
Please login to merge, or discard this patch.
apps/federation/lib/DbHandler.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 			return $query->getLastInsertId();
81 81
 		}
82 82
 
83
-		$message = 'Internal failure, Could not add trusted server: ' . $url;
83
+		$message = 'Internal failure, Could not add trusted server: '.$url;
84 84
 		$message_t = $this->IL10N->t('Could not add server');
85 85
 		throw new HintException($message, $message_t);
86 86
 		return -1;
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 		$qResult->closeCursor();
115 115
 
116 116
 		if (empty($result)) {
117
-			throw new \Exception('No Server found with ID: ' . $id);
117
+			throw new \Exception('No Server found with ID: '.$id);
118 118
 		}
119 119
 
120 120
 		return $result[0];
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 		$statement->closeCursor();
184 184
 
185 185
 		if (!isset($result['token'])) {
186
-			throw new \Exception('No token found for: ' . $url);
186
+			throw new \Exception('No token found for: '.$url);
187 187
 		}
188 188
 
189 189
 		return $result['token'];
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 		$statement = $query->executeQuery();
217 217
 		$result = $statement->fetch();
218 218
 		$statement->closeCursor();
219
-		return (string)$result['shared_secret'];
219
+		return (string) $result['shared_secret'];
220 220
 	}
221 221
 
222 222
 	/**
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 		$statement = $query->executeQuery();
248 248
 		$result = $statement->fetch();
249 249
 		$statement->closeCursor();
250
-		return (int)$result['status'];
250
+		return (int) $result['status'];
251 251
 	}
252 252
 
253 253
 	/**
Please login to merge, or discard this patch.
apps/files_sharing/lib/ExpireSharesJob.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,13 +87,13 @@
 block discarded – undo
87 87
 
88 88
 		$shares = $qb->executeQuery();
89 89
 		while ($share = $shares->fetch()) {
90
-			if ((int)$share['share_type'] === IShare::TYPE_LINK) {
90
+			if ((int) $share['share_type'] === IShare::TYPE_LINK) {
91 91
 				$id = 'ocinternal';
92
-			} elseif ((int)$share['share_type'] === IShare::TYPE_EMAIL) {
92
+			} elseif ((int) $share['share_type'] === IShare::TYPE_EMAIL) {
93 93
 				$id = 'ocMailShare';
94 94
 			}
95 95
 
96
-			$id .= ':' . $share['id'];
96
+			$id .= ':'.$share['id'];
97 97
 
98 98
 			try {
99 99
 				$share = $this->shareManager->getShareById($id);
Please login to merge, or discard this patch.
apps/files/templates/list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 	<?php if (isset($_['dirToken'])):?>
16 16
 	<input type="hidden" id="publicUploadRequestToken" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
17 17
 	<input type="hidden" id="dirToken" name="dirToken" value="<?php p($_['dirToken']) ?>" />
18
-	<?php endif;?>
18
+	<?php endif; ?>
19 19
 	<input type="hidden" class="max_human_file_size"
20 20
 		   value="(max <?php isset($_['uploadMaxHumanFilesize']) ? p($_['uploadMaxHumanFilesize']) : ''; ?>)">
21 21
 </div>
@@ -75,6 +75,6 @@  discard block
 block discarded – undo
75 75
 </div>
76 76
 <div id="uploadsize-message" title="<?php p($l->t('Upload too large'))?>">
77 77
 	<p>
78
-	<?php p($l->t('The files you are trying to upload exceed the maximum size for file uploads on this server.'));?>
78
+	<?php p($l->t('The files you are trying to upload exceed the maximum size for file uploads on this server.')); ?>
79 79
 	</p>
80 80
 </div>
Please login to merge, or discard this patch.
apps/dav/templates/schedule-response-success.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,5 +5,5 @@
 block discarded – undo
5 5
 ?>
6 6
 <div class="guest-box">
7 7
 	<div class="icon icon-checkmark"></div>
8
-	<p class="message"><?php p($l->t('Your attendance was updated successfully.'));?></p>
8
+	<p class="message"><?php p($l->t('Your attendance was updated successfully.')); ?></p>
9 9
 </div>
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
@@ -6,8 +6,8 @@
 block discarded – undo
6 6
 ?>
7 7
 <div class="guest-box">
8 8
 	<div class="notecard error">
9
-		<p><?php p($l->t('There was an error updating your attendance status.'));?></p>
10
-		<p><?php p($l->t('Please contact the organizer directly.'));?></p>
9
+		<p><?php p($l->t('There was an error updating your attendance status.')); ?></p>
10
+		<p><?php p($l->t('Please contact the organizer directly.')); ?></p>
11 11
 		<?php if (isset($_['organizer'])): ?>
12 12
 			<p><a href="<?php p($_['organizer']) ?>"><?php p(substr($_['organizer'], 7)) ?></a></p>
13 13
 		<?php endif; ?>
Please login to merge, or discard this patch.
apps/dav/lib/CalDAV/Reminder/Notifier.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -263,10 +263,10 @@  discard block
 block discarded – undo
263 263
 			]);
264 264
 
265 265
 			return $localeStart
266
-				. ' (' . $startTimezone . ') '
266
+				. ' ('.$startTimezone.') '
267 267
 				. ' - '
268 268
 				. $localeEnd
269
-				. ' (' . $endTimezone . ')';
269
+				. ' ('.$endTimezone.')';
270 270
 		}
271 271
 
272 272
 		// Show only the time if the day is the same
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 		return $localeStart
281 281
 			. ' - '
282 282
 			. $localeEnd
283
-			. ' (' . $startTimezone . ')';
283
+			. ' ('.$startTimezone.')';
284 284
 	}
285 285
 
286 286
 	/**
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 	 * @return string
299 299
 	 */
300 300
 	private function getWeekDayName(DateTime $dt):string {
301
-		return (string)$this->l10n->l('weekdayName', $dt, ['width' => 'abbreviated']);
301
+		return (string) $this->l10n->l('weekdayName', $dt, ['width' => 'abbreviated']);
302 302
 	}
303 303
 
304 304
 	/**
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
 	 * @return string
307 307
 	 */
308 308
 	private function getDateString(DateTime $dt):string {
309
-		return (string)$this->l10n->l('date', $dt, ['width' => 'medium']);
309
+		return (string) $this->l10n->l('date', $dt, ['width' => 'medium']);
310 310
 	}
311 311
 
312 312
 	/**
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 	 * @return string
315 315
 	 */
316 316
 	private function getDateTimeString(DateTime $dt):string {
317
-		return (string)$this->l10n->l('datetime', $dt, ['width' => 'medium|short']);
317
+		return (string) $this->l10n->l('datetime', $dt, ['width' => 'medium|short']);
318 318
 	}
319 319
 
320 320
 	/**
@@ -322,6 +322,6 @@  discard block
 block discarded – undo
322 322
 	 * @return string
323 323
 	 */
324 324
 	private function getTimeString(DateTime $dt):string {
325
-		return (string)$this->l10n->l('time', $dt, ['width' => 'short']);
325
+		return (string) $this->l10n->l('time', $dt, ['width' => 'short']);
326 326
 	}
327 327
 }
Please login to merge, or discard this patch.
apps/dav/lib/Listener/ActivityUpdaterListener.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 				);
71 71
 			} catch (Throwable $e) {
72 72
 				// Any error with activities shouldn't abort the calendar creation, so we just log it
73
-				$this->logger->error('Error generating activities for a new calendar: ' . $e->getMessage(), [
73
+				$this->logger->error('Error generating activities for a new calendar: '.$e->getMessage(), [
74 74
 					'exception' => $e,
75 75
 				]);
76 76
 			}
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 				);
88 88
 			} catch (Throwable $e) {
89 89
 				// Any error with activities shouldn't abort the calendar update, so we just log it
90
-				$this->logger->error('Error generating activities for changed calendar: ' . $e->getMessage(), [
90
+				$this->logger->error('Error generating activities for changed calendar: '.$e->getMessage(), [
91 91
 					'exception' => $e,
92 92
 				]);
93 93
 			}
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 				);
104 104
 			} catch (Throwable $e) {
105 105
 				// Any error with activities shouldn't abort the calendar update, so we just log it
106
-				$this->logger->error('Error generating activities for changed calendar: ' . $e->getMessage(), [
106
+				$this->logger->error('Error generating activities for changed calendar: '.$e->getMessage(), [
107 107
 					'exception' => $e,
108 108
 				]);
109 109
 			}
@@ -119,13 +119,13 @@  discard block
 block discarded – undo
119 119
 				);
120 120
 			} catch (Throwable $e) {
121 121
 				// Any error with activities shouldn't abort the calendar update, so we just log it
122
-				$this->logger->error('Error generating activities for changed calendar: ' . $e->getMessage(), [
122
+				$this->logger->error('Error generating activities for changed calendar: '.$e->getMessage(), [
123 123
 					'exception' => $e,
124 124
 				]);
125 125
 			}
126 126
 		} elseif ($event instanceof CalendarDeletedEvent) {
127 127
 			try {
128
-				$deletedProp = '{' . Plugin::NS_NEXTCLOUD . '}deleted-at';
128
+				$deletedProp = '{'.Plugin::NS_NEXTCLOUD.'}deleted-at';
129 129
 				if (isset($event->getCalendarData()[$deletedProp])) {
130 130
 					$this->logger->debug(
131 131
 						sprintf('Calendar %d was already in trashbin, skipping deletion activity', $event->getCalendarId())
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 				}
143 143
 			} catch (Throwable $e) {
144 144
 				// Any error with activities shouldn't abort the calendar deletion, so we just log it
145
-				$this->logger->error('Error generating activities for a deleted calendar: ' . $e->getMessage(), [
145
+				$this->logger->error('Error generating activities for a deleted calendar: '.$e->getMessage(), [
146 146
 					'exception' => $e,
147 147
 				]);
148 148
 			}
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 				);
161 161
 			} catch (Throwable $e) {
162 162
 				// Any error with activities shouldn't abort the calendar object creation, so we just log it
163
-				$this->logger->error('Error generating activity for a new calendar object: ' . $e->getMessage(), [
163
+				$this->logger->error('Error generating activity for a new calendar object: '.$e->getMessage(), [
164 164
 					'exception' => $e,
165 165
 				]);
166 166
 			}
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 				);
179 179
 			} catch (Throwable $e) {
180 180
 				// Any error with activities shouldn't abort the calendar deletion, so we just log it
181
-				$this->logger->error('Error generating activity for a deleted calendar object: ' . $e->getMessage(), [
181
+				$this->logger->error('Error generating activity for a deleted calendar object: '.$e->getMessage(), [
182 182
 					'exception' => $e,
183 183
 				]);
184 184
 			}
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 				);
198 198
 			} catch (Throwable $e) {
199 199
 				// Any error with activities shouldn't abort the calendar deletion, so we just log it
200
-				$this->logger->error('Error generating activity for a deleted calendar object: ' . $e->getMessage(), [
200
+				$this->logger->error('Error generating activity for a deleted calendar object: '.$e->getMessage(), [
201 201
 					'exception' => $e,
202 202
 				]);
203 203
 			}
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 				);
216 216
 			} catch (Throwable $e) {
217 217
 				// Any error with activities shouldn't abort the calendar object creation, so we just log it
218
-				$this->logger->error('Error generating activity for a new calendar object: ' . $e->getMessage(), [
218
+				$this->logger->error('Error generating activity for a new calendar object: '.$e->getMessage(), [
219 219
 					'exception' => $e,
220 220
 				]);
221 221
 			}
@@ -233,13 +233,13 @@  discard block
 block discarded – undo
233 233
 				);
234 234
 			} catch (Throwable $e) {
235 235
 				// Any error with activities shouldn't abort the calendar object restoration, so we just log it
236
-				$this->logger->error('Error generating activity for a restored calendar object: ' . $e->getMessage(), [
236
+				$this->logger->error('Error generating activity for a restored calendar object: '.$e->getMessage(), [
237 237
 					'exception' => $e,
238 238
 				]);
239 239
 			}
240 240
 		} elseif ($event instanceof CalendarObjectDeletedEvent) {
241 241
 			try {
242
-				$deletedProp = '{' . Plugin::NS_NEXTCLOUD . '}deleted-at';
242
+				$deletedProp = '{'.Plugin::NS_NEXTCLOUD.'}deleted-at';
243 243
 				if (isset($event->getObjectData()[$deletedProp])) {
244 244
 					$this->logger->debug(
245 245
 						sprintf('Calendar object in calendar %d was already in trashbin, skipping deletion activity', $event->getCalendarId())
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
 				}
259 259
 			} catch (Throwable $e) {
260 260
 				// Any error with activities shouldn't abort the calendar deletion, so we just log it
261
-				$this->logger->error('Error generating activity for a deleted calendar object: ' . $e->getMessage(), [
261
+				$this->logger->error('Error generating activity for a deleted calendar object: '.$e->getMessage(), [
262 262
 					'exception' => $e,
263 263
 				]);
264 264
 			}
Please login to merge, or discard this patch.