Passed
Push — master ( 6ce3c5...504e18 )
by John
14:34 queued 13s
created
apps/dav/lib/Search/ContactsSearchProvider.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 			return SearchResult::complete($this->getName(), []);
109 109
 		}
110 110
 
111
-		$principalUri = 'principals/users/' . $user->getUID();
111
+		$principalUri = 'principals/users/'.$user->getUID();
112 112
 		$addressBooks = $this->backend->getAddressBooksForUser($principalUri);
113 113
 		$addressBooksById = [];
114 114
 		foreach ($addressBooks as $addressBook) {
@@ -124,17 +124,17 @@  discard block
 block discarded – undo
124 124
 				'offset' => $query->getCursor(),
125 125
 			]
126 126
 		);
127
-		$formattedResults = \array_map(function (array $contactRow) use ($addressBooksById):SearchResultEntry {
127
+		$formattedResults = \array_map(function(array $contactRow) use ($addressBooksById):SearchResultEntry {
128 128
 			$addressBook = $addressBooksById[$contactRow['addressbookid']];
129 129
 
130 130
 			/** @var VCard $vCard */
131 131
 			$vCard = Reader::read($contactRow['carddata']);
132 132
 			$thumbnailUrl = '';
133 133
 			if ($vCard->PHOTO) {
134
-				$thumbnailUrl = $this->getDavUrlForContact($addressBook['principaluri'], $addressBook['uri'], $contactRow['uri']) . '?photo';
134
+				$thumbnailUrl = $this->getDavUrlForContact($addressBook['principaluri'], $addressBook['uri'], $contactRow['uri']).'?photo';
135 135
 			}
136 136
 
137
-			$title = (string)$vCard->FN;
137
+			$title = (string) $vCard->FN;
138 138
 			$subline = $this->generateSubline($vCard);
139 139
 			$resourceUrl = $this->getDeepLinkToContactsApp($addressBook['uri'], (string) $vCard->UID);
140 140
 
@@ -160,10 +160,10 @@  discard block
 block discarded – undo
160 160
 		[, $principalType, $principalId] = explode('/', $principalUri, 3);
161 161
 
162 162
 		return $this->urlGenerator->getAbsoluteURL(
163
-			$this->urlGenerator->linkTo('', 'remote.php') . '/dav/addressbooks/'
164
-				. $principalType . '/'
165
-				. $principalId . '/'
166
-				. $addressBookUri . '/'
163
+			$this->urlGenerator->linkTo('', 'remote.php').'/dav/addressbooks/'
164
+				. $principalType.'/'
165
+				. $principalId.'/'
166
+				. $addressBookUri.'/'
167 167
 				. $contactsUri
168 168
 		);
169 169
 	}
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 												string $contactUid): string {
178 178
 		return $this->urlGenerator->getAbsoluteURL(
179 179
 			$this->urlGenerator->linkToRoute('contacts.contacts.direct', [
180
-				'contact' => $contactUid . '~' . $addressBookUri
180
+				'contact' => $contactUid.'~'.$addressBookUri
181 181
 			])
182 182
 		);
183 183
 	}
@@ -192,6 +192,6 @@  discard block
 block discarded – undo
192 192
 			return '';
193 193
 		}
194 194
 
195
-		return (string)$emailAddresses[0];
195
+		return (string) $emailAddresses[0];
196 196
 	}
197 197
 }
Please login to merge, or discard this patch.
lib/public/UserStatus/IUserStatus.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	 * @return string|null
86 86
 	 * @since 20.0.0
87 87
 	 */
88
-	public function getMessage():?string;
88
+	public function getMessage(): ?string;
89 89
 
90 90
 	/**
91 91
 	 * Get a custom icon provided by the user
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 	 * @return string|null
94 94
 	 * @since 20.0.0
95 95
 	 */
96
-	public function getIcon():?string;
96
+	public function getIcon(): ?string;
97 97
 
98 98
 	/**
99 99
 	 * Gets the time that the custom status will be cleared at
@@ -101,5 +101,5 @@  discard block
 block discarded – undo
101 101
 	 * @return DateTimeImmutable|null
102 102
 	 * @since 20.0.0
103 103
 	 */
104
-	public function getClearAt():?DateTimeImmutable;
104
+	public function getClearAt(): ?DateTimeImmutable;
105 105
 }
Please login to merge, or discard this patch.
lib/private/Group/Database.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -285,10 +285,10 @@  discard block
 block discarded – undo
285 285
 
286 286
 		if ($search !== '') {
287 287
 			$query->where($query->expr()->iLike('gid', $query->createNamedParameter(
288
-				'%' . $this->dbConn->escapeLikeParameter($search) . '%'
288
+				'%'.$this->dbConn->escapeLikeParameter($search).'%'
289 289
 			)));
290 290
 			$query->orWhere($query->expr()->iLike('displayname', $query->createNamedParameter(
291
-				'%' . $this->dbConn->escapeLikeParameter($search) . '%'
291
+				'%'.$this->dbConn->escapeLikeParameter($search).'%'
292 292
 			)));
293 293
 		}
294 294
 
@@ -363,9 +363,9 @@  discard block
 block discarded – undo
363 363
 				// sqlite doesn't like re-using a single named parameter here
364 364
 				->andWhere(
365 365
 					$query->expr()->orX(
366
-						$query->expr()->ilike('g.uid', $query->createNamedParameter('%' . $this->dbConn->escapeLikeParameter($search) . '%')),
367
-						$query->expr()->ilike('u.displayname', $query->createNamedParameter('%' . $this->dbConn->escapeLikeParameter($search) . '%')),
368
-						$query->expr()->ilike('p.configvalue', $query->createNamedParameter('%' . $this->dbConn->escapeLikeParameter($search) . '%'))
366
+						$query->expr()->ilike('g.uid', $query->createNamedParameter('%'.$this->dbConn->escapeLikeParameter($search).'%')),
367
+						$query->expr()->ilike('u.displayname', $query->createNamedParameter('%'.$this->dbConn->escapeLikeParameter($search).'%')),
368
+						$query->expr()->ilike('p.configvalue', $query->createNamedParameter('%'.$this->dbConn->escapeLikeParameter($search).'%'))
369 369
 					)
370 370
 				)
371 371
 				->orderBy('u.uid_lower', 'ASC');
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 
406 406
 		if ($search !== '') {
407 407
 			$query->andWhere($query->expr()->like('uid', $query->createNamedParameter(
408
-				'%' . $this->dbConn->escapeLikeParameter($search) . '%'
408
+				'%'.$this->dbConn->escapeLikeParameter($search).'%'
409 409
 			)));
410 410
 		}
411 411
 
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
 		$result->closeCursor();
415 415
 
416 416
 		if ($count !== false) {
417
-			$count = (int)$count;
417
+			$count = (int) $count;
418 418
 		} else {
419 419
 			$count = 0;
420 420
 		}
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
 		$this->fixDI();
434 434
 
435 435
 		$query = $this->dbConn->getQueryBuilder();
436
-		$query->select($query->createFunction('COUNT(DISTINCT ' . $query->getColumnName('uid') . ')'))
436
+		$query->select($query->createFunction('COUNT(DISTINCT '.$query->getColumnName('uid').')'))
437 437
 			->from('preferences', 'p')
438 438
 			->innerJoin('p', 'group_user', 'g', $query->expr()->eq('p.userid', 'g.uid'))
439 439
 			->where($query->expr()->eq('appid', $query->createNamedParameter('core')))
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
 		$result->closeCursor();
447 447
 
448 448
 		if ($count !== false) {
449
-			$count = (int)$count;
449
+			$count = (int) $count;
450 450
 		} else {
451 451
 			$count = 0;
452 452
 		}
Please login to merge, or discard this patch.
apps/settings/lib/Search/AppSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
 				continue;
83 83
 			}
84 84
 
85
-			if (strpos($query->getRoute(), $entry['id'] . '.') === 0) {
85
+			if (strpos($query->getRoute(), $entry['id'].'.') === 0) {
86 86
 				// Skip the current app, unlikely this is intended
87 87
 				continue;
88 88
 			}
Please login to merge, or discard this patch.
apps/workflowengine/lib/Entity/File.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -106,12 +106,12 @@  discard block
 block discarded – undo
106 106
 
107 107
 	public function getEvents(): array {
108 108
 		return [
109
-			new GenericEntityEvent($this->l10n->t('File created'), self::EVENT_NAMESPACE . 'postCreate'),
110
-			new GenericEntityEvent($this->l10n->t('File updated'), self::EVENT_NAMESPACE . 'postWrite'),
111
-			new GenericEntityEvent($this->l10n->t('File renamed'), self::EVENT_NAMESPACE . 'postRename'),
112
-			new GenericEntityEvent($this->l10n->t('File deleted'), self::EVENT_NAMESPACE . 'postDelete'),
113
-			new GenericEntityEvent($this->l10n->t('File accessed'), self::EVENT_NAMESPACE . 'postTouch'),
114
-			new GenericEntityEvent($this->l10n->t('File copied'), self::EVENT_NAMESPACE . 'postCopy'),
109
+			new GenericEntityEvent($this->l10n->t('File created'), self::EVENT_NAMESPACE.'postCreate'),
110
+			new GenericEntityEvent($this->l10n->t('File updated'), self::EVENT_NAMESPACE.'postWrite'),
111
+			new GenericEntityEvent($this->l10n->t('File renamed'), self::EVENT_NAMESPACE.'postRename'),
112
+			new GenericEntityEvent($this->l10n->t('File deleted'), self::EVENT_NAMESPACE.'postDelete'),
113
+			new GenericEntityEvent($this->l10n->t('File accessed'), self::EVENT_NAMESPACE.'postTouch'),
114
+			new GenericEntityEvent($this->l10n->t('File copied'), self::EVENT_NAMESPACE.'postCopy'),
115 115
 			new GenericEntityEvent($this->l10n->t('Tag assigned'), MapperEvent::EVENT_ASSIGN),
116 116
 		];
117 117
 	}
@@ -156,19 +156,19 @@  discard block
 block discarded – undo
156 156
 			throw new NotFoundException();
157 157
 		}
158 158
 		switch ($this->eventName) {
159
-			case self::EVENT_NAMESPACE . 'postCreate':
160
-			case self::EVENT_NAMESPACE . 'postWrite':
161
-			case self::EVENT_NAMESPACE . 'postDelete':
162
-			case self::EVENT_NAMESPACE . 'postTouch':
159
+			case self::EVENT_NAMESPACE.'postCreate':
160
+			case self::EVENT_NAMESPACE.'postWrite':
161
+			case self::EVENT_NAMESPACE.'postDelete':
162
+			case self::EVENT_NAMESPACE.'postTouch':
163 163
 				return $this->event->getSubject();
164
-			case self::EVENT_NAMESPACE . 'postRename':
165
-			case self::EVENT_NAMESPACE . 'postCopy':
164
+			case self::EVENT_NAMESPACE.'postRename':
165
+			case self::EVENT_NAMESPACE.'postCopy':
166 166
 				return $this->event->getSubject()[1];
167 167
 			case MapperEvent::EVENT_ASSIGN:
168 168
 				if (!$this->event instanceof MapperEvent || $this->event->getObjectType() !== 'files') {
169 169
 					throw new NotFoundException();
170 170
 				}
171
-				$nodes = $this->root->getById((int)$this->event->getObjectId());
171
+				$nodes = $this->root->getById((int) $this->event->getObjectId());
172 172
 				if (is_array($nodes) && isset($nodes[0])) {
173 173
 					$this->node = $nodes[0];
174 174
 					return $this->node;
@@ -191,17 +191,17 @@  discard block
 block discarded – undo
191 191
 		];
192 192
 
193 193
 		switch ($this->eventName) {
194
-			case self::EVENT_NAMESPACE . 'postCreate':
194
+			case self::EVENT_NAMESPACE.'postCreate':
195 195
 				return $this->l10n->t('%s created %s', $options);
196
-			case self::EVENT_NAMESPACE . 'postWrite':
196
+			case self::EVENT_NAMESPACE.'postWrite':
197 197
 				return $this->l10n->t('%s modified %s', $options);
198
-			case self::EVENT_NAMESPACE . 'postDelete':
198
+			case self::EVENT_NAMESPACE.'postDelete':
199 199
 				return $this->l10n->t('%s deleted %s', $options);
200
-			case self::EVENT_NAMESPACE . 'postTouch':
200
+			case self::EVENT_NAMESPACE.'postTouch':
201 201
 				return $this->l10n->t('%s accessed %s', $options);
202
-			case self::EVENT_NAMESPACE . 'postRename':
202
+			case self::EVENT_NAMESPACE.'postRename':
203 203
 				return $this->l10n->t('%s renamed %s', $options);
204
-			case self::EVENT_NAMESPACE . 'postCopy':
204
+			case self::EVENT_NAMESPACE.'postCopy':
205 205
 				return $this->l10n->t('%s copied %s', $options);
206 206
 			case MapperEvent::EVENT_ASSIGN:
207 207
 				$tagNames = [];
Please login to merge, or discard this patch.
lib/private/Files/ObjectStore/AppdataPreviewObjectStoreStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@
 block discarded – undo
34 34
 		if (!isset($params['internal-id'])) {
35 35
 			throw new \Exception('missing id in parameters');
36 36
 		}
37
-		$this->internalId = (string)$params['internal-id'];
37
+		$this->internalId = (string) $params['internal-id'];
38 38
 		parent::__construct($params);
39 39
 	}
40 40
 
41 41
 	public function getId() {
42
-		return 'object::appdata::preview:' . $this->internalId;
42
+		return 'object::appdata::preview:'.$this->internalId;
43 43
 	}
44 44
 }
Please login to merge, or discard this patch.
apps/files_external/lib/Service/UserGlobalStoragesService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
 		$result = [];
117 117
 		foreach ($storagesByMountpoint as $storageList) {
118
-			$storage = array_reduce($storageList, function ($carry, $item) {
118
+			$storage = array_reduce($storageList, function($carry, $item) {
119 119
 				if (isset($carry)) {
120 120
 					$carryPriorityType = $this->getPriorityType($carry);
121 121
 					$itemPriorityType = $this->getPriorityType($item);
@@ -191,11 +191,11 @@  discard block
 block discarded – undo
191 191
 		$groupIds = $this->groupManager->getUserGroupIds($user);
192 192
 		$mounts = $this->dbConfig->getMountsForUser($user->getUID(), $groupIds);
193 193
 		$configs = array_map([$this, 'getStorageConfigFromDBMount'], $mounts);
194
-		$configs = array_filter($configs, function ($config) {
194
+		$configs = array_filter($configs, function($config) {
195 195
 			return $config instanceof StorageConfig;
196 196
 		});
197 197
 
198
-		$keys = array_map(function (StorageConfig $config) {
198
+		$keys = array_map(function(StorageConfig $config) {
199 199
 			return $config->getId();
200 200
 		}, $configs);
201 201
 
Please login to merge, or discard this patch.
apps/files_external/lib/BackgroundJob/CredentialsCleanup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,10 +54,10 @@
 block discarded – undo
54 54
 	}
55 55
 
56 56
 	protected function run($argument) {
57
-		$this->userManager->callForSeenUsers(function (IUser $user) {
57
+		$this->userManager->callForSeenUsers(function(IUser $user) {
58 58
 			$storages = $this->userGlobalStoragesService->getAllStoragesForUser($user);
59 59
 
60
-			$usesLoginCredentials = array_reduce($storages, function (bool $uses, StorageConfig $storage) {
60
+			$usesLoginCredentials = array_reduce($storages, function(bool $uses, StorageConfig $storage) {
61 61
 				return $uses || $storage->getAuthMechanism() instanceof LoginCredentials;
62 62
 			}, false);
63 63
 
Please login to merge, or discard this patch.
core/Command/App/Disable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,14 +72,14 @@
 block discarded – undo
72 72
 
73 73
 	private function disableApp(string $appId, OutputInterface $output): void {
74 74
 		if ($this->appManager->isInstalled($appId) === false) {
75
-			$output->writeln('No such app enabled: ' . $appId);
75
+			$output->writeln('No such app enabled: '.$appId);
76 76
 			return;
77 77
 		}
78 78
 
79 79
 		try {
80 80
 			$this->appManager->disableApp($appId);
81 81
 			$appVersion = \OC_App::getAppVersion($appId);
82
-			$output->writeln($appId . ' ' . $appVersion . ' disabled');
82
+			$output->writeln($appId.' '.$appVersion.' disabled');
83 83
 		} catch (\Exception $e) {
84 84
 			$output->writeln($e->getMessage());
85 85
 			$this->exitCode = 2;
Please login to merge, or discard this patch.