Completed
Push — master ( ae6394...970eb8 )
by John
31:32 queued 02:08
created
apps/dav/lib/CardDAV/Plugin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,15 +45,15 @@  discard block
 block discarded – undo
45 45
 	protected function getAddressbookHomeForPrincipal($principal) {
46 46
 		if (strrpos($principal, 'principals/users', -strlen($principal)) !== false) {
47 47
 			[, $principalId] = \Sabre\Uri\split($principal);
48
-			return self::ADDRESSBOOK_ROOT . '/users/' . $principalId;
48
+			return self::ADDRESSBOOK_ROOT.'/users/'.$principalId;
49 49
 		}
50 50
 		if (strrpos($principal, 'principals/groups', -strlen($principal)) !== false) {
51 51
 			[, $principalId] = \Sabre\Uri\split($principal);
52
-			return self::ADDRESSBOOK_ROOT . '/groups/' . $principalId;
52
+			return self::ADDRESSBOOK_ROOT.'/groups/'.$principalId;
53 53
 		}
54 54
 		if (strrpos($principal, 'principals/system', -strlen($principal)) !== false) {
55 55
 			[, $principalId] = \Sabre\Uri\split($principal);
56
-			return self::ADDRESSBOOK_ROOT . '/system/' . $principalId;
56
+			return self::ADDRESSBOOK_ROOT.'/system/'.$principalId;
57 57
 		}
58 58
 	}
59 59
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 		$ns = '{http://owncloud.org/ns}';
69 69
 
70 70
 		if ($node instanceof AddressBook) {
71
-			$propFind->handle($ns . 'groups', function () use ($node) {
71
+			$propFind->handle($ns.'groups', function() use ($node) {
72 72
 				return new Groups($node->getContactsGroups());
73 73
 			});
74 74
 		}
Please login to merge, or discard this patch.
apps/dav/lib/Traits/PrincipalProxyTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -92,11 +92,11 @@  discard block
 block discarded – undo
92 92
 		$proxies = $this->proxyMapper->getProxiesFor($principal);
93 93
 		foreach ($proxies as $proxy) {
94 94
 			if ($proxy->getPermissions() === ProxyMapper::PERMISSION_READ) {
95
-				$groups[] = $proxy->getOwnerId() . '/calendar-proxy-read';
95
+				$groups[] = $proxy->getOwnerId().'/calendar-proxy-read';
96 96
 			}
97 97
 
98 98
 			if ($proxy->getPermissions() === (ProxyMapper::PERMISSION_READ | ProxyMapper::PERMISSION_WRITE)) {
99
-				$groups[] = $proxy->getOwnerId() . '/calendar-proxy-write';
99
+				$groups[] = $proxy->getOwnerId().'/calendar-proxy-write';
100 100
 			}
101 101
 		}
102 102
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 			[$prefix, $name] = \Sabre\Uri\split($member);
137 137
 
138 138
 			if ($prefix !== $this->principalPrefix) {
139
-				throw new Exception('Invalid member group prefix: ' . $prefix);
139
+				throw new Exception('Invalid member group prefix: '.$prefix);
140 140
 			}
141 141
 
142 142
 			$principalArray = $this->getPrincipalByPath($member);
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 					$proxy->setPermissions($proxy->getPermissions() | $permission);
152 152
 					$this->proxyMapper->update($proxy);
153 153
 
154
-					$proxies = array_filter($proxies, function (Proxy $p) use ($proxy) {
154
+					$proxies = array_filter($proxies, function(Proxy $p) use ($proxy) {
155 155
 						return $p->getId() !== $proxy->getId();
156 156
 					});
157 157
 					break;
Please login to merge, or discard this patch.
apps/dav/lib/CalDAV/Plugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,15 +41,15 @@
 block discarded – undo
41 41
 	public function getCalendarHomeForPrincipal($principalUrl) {
42 42
 		if (strrpos($principalUrl, 'principals/users', -strlen($principalUrl)) !== false) {
43 43
 			[, $principalId] = \Sabre\Uri\split($principalUrl);
44
-			return self::CALENDAR_ROOT . '/' . $principalId;
44
+			return self::CALENDAR_ROOT.'/'.$principalId;
45 45
 		}
46 46
 		if (strrpos($principalUrl, 'principals/calendar-resources', -strlen($principalUrl)) !== false) {
47 47
 			[, $principalId] = \Sabre\Uri\split($principalUrl);
48
-			return self::SYSTEM_CALENDAR_ROOT . '/calendar-resources/' . $principalId;
48
+			return self::SYSTEM_CALENDAR_ROOT.'/calendar-resources/'.$principalId;
49 49
 		}
50 50
 		if (strrpos($principalUrl, 'principals/calendar-rooms', -strlen($principalUrl)) !== false) {
51 51
 			[, $principalId] = \Sabre\Uri\split($principalUrl);
52
-			return self::SYSTEM_CALENDAR_ROOT . '/calendar-rooms/' . $principalId;
52
+			return self::SYSTEM_CALENDAR_ROOT.'/calendar-rooms/'.$principalId;
53 53
 		}
54 54
 	}
55 55
 }
Please login to merge, or discard this patch.
apps/dav/lib/CalDAV/Search/SearchPlugin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
 		$server->on('report', [$this, 'report']);
84 84
 
85
-		$server->xml->elementMap['{' . self::NS_Nextcloud . '}calendar-search'] =
85
+		$server->xml->elementMap['{'.self::NS_Nextcloud.'}calendar-search'] =
86 86
 			CalendarSearchReport::class;
87 87
 	}
88 88
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	 */
97 97
 	public function report($reportName, $report, $path) {
98 98
 		switch ($reportName) {
99
-			case '{' . self::NS_Nextcloud . '}calendar-search':
99
+			case '{'.self::NS_Nextcloud.'}calendar-search':
100 100
 				$this->server->transactionType = 'report-nc-calendar-search';
101 101
 				$this->calendarSearch($report);
102 102
 				return false;
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
 		$reports = [];
120 120
 		if ($node instanceof CalendarHome) {
121
-			$reports[] = '{' . self::NS_Nextcloud . '}calendar-search';
121
+			$reports[] = '{'.self::NS_Nextcloud.'}calendar-search';
122 122
 		}
123 123
 
124 124
 		return $reports;
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 
148 148
 			foreach ($nodePaths as $path) {
149 149
 				[$properties] = $this->server->getPropertiesForPath(
150
-					$this->server->getRequestUri() . '/' . $path,
150
+					$this->server->getRequestUri().'/'.$path,
151 151
 					$report->properties);
152 152
 				$result[] = $properties;
153 153
 			}
Please login to merge, or discard this patch.
apps/settings/lib/Listener/AppPasswordCreatedActivityListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 		try {
66 66
 			$this->activityManager->publish($activity);
67 67
 		} catch (BadMethodCallException $e) {
68
-			$this->logger->warning('Could not publish activity: ' . $e->getMessage(), [
68
+			$this->logger->warning('Could not publish activity: '.$e->getMessage(), [
69 69
 				'exception' => $e
70 70
 			]);
71 71
 		}
Please login to merge, or discard this patch.
apps/files_external/lib/Service/DBConfigService.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 		$stmt->closeCursor();
141 141
 
142 142
 		foreach ($result as $row) {
143
-			if ((int)$row['count'] > 1) {
143
+			if ((int) $row['count'] > 1) {
144 144
 				$this->removeApplicable($row['mount_id'], $applicableType, $applicableId);
145 145
 			} else {
146 146
 				$this->removeMount($row['mount_id']);
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 	 */
215 215
 	public function getAdminMountsForMultiple($type, array $values) {
216 216
 		$builder = $this->connection->getQueryBuilder();
217
-		$params = array_map(function ($value) use ($builder) {
217
+		$params = array_map(function($value) use ($builder) {
218 218
 			return $builder->createNamedParameter($value, IQueryBuilder::PARAM_STR);
219 219
 		}, $values);
220 220
 
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
 		}
413 413
 		$uniqueMounts = array_values($uniqueMounts);
414 414
 
415
-		$mountIds = array_map(function ($mount) {
415
+		$mountIds = array_map(function($mount) {
416 416
 			return $mount['mount_id'];
417 417
 		}, $uniqueMounts);
418 418
 		$mountIds = array_values(array_unique($mountIds));
@@ -421,9 +421,9 @@  discard block
 block discarded – undo
421 421
 		$config = $this->getConfigForMounts($mountIds);
422 422
 		$options = $this->getOptionsForMounts($mountIds);
423 423
 
424
-		return array_map(function ($mount, $applicable, $config, $options) {
425
-			$mount['type'] = (int)$mount['type'];
426
-			$mount['priority'] = (int)$mount['priority'];
424
+		return array_map(function($mount, $applicable, $config, $options) {
425
+			$mount['type'] = (int) $mount['type'];
426
+			$mount['priority'] = (int) $mount['priority'];
427 427
 			$mount['applicable'] = $applicable;
428 428
 			$mount['config'] = $config;
429 429
 			$mount['options'] = $options;
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
 		}
446 446
 		$builder = $this->connection->getQueryBuilder();
447 447
 		$fields[] = 'mount_id';
448
-		$placeHolders = array_map(function ($id) use ($builder) {
448
+		$placeHolders = array_map(function($id) use ($builder) {
449 449
 			return $builder->createPositionalParameter($id, IQueryBuilder::PARAM_INT);
450 450
 		}, $mountIds);
451 451
 		$query = $builder->select($fields)
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
 		}
463 463
 		foreach ($rows as $row) {
464 464
 			if (isset($row['type'])) {
465
-				$row['type'] = (int)$row['type'];
465
+				$row['type'] = (int) $row['type'];
466 466
 			}
467 467
 			$result[$row['mount_id']][] = $row;
468 468
 		}
@@ -493,8 +493,8 @@  discard block
 block discarded – undo
493 493
 	public function getOptionsForMounts($mountIds) {
494 494
 		$mountOptions = $this->selectForMounts('external_options', ['key', 'value'], $mountIds);
495 495
 		$optionsMap = array_map([$this, 'createKeyValueMap'], $mountOptions);
496
-		return array_map(function (array $options) {
497
-			return array_map(function ($option) {
496
+		return array_map(function(array $options) {
497
+			return array_map(function($option) {
498 498
 				return json_decode($option);
499 499
 			}, $options);
500 500
 		}, $optionsMap);
@@ -505,16 +505,16 @@  discard block
 block discarded – undo
505 505
 	 * @return array ['key1' => $value1, ...]
506 506
 	 */
507 507
 	private function createKeyValueMap(array $keyValuePairs) {
508
-		$decryptedPairts = array_map(function ($pair) {
508
+		$decryptedPairts = array_map(function($pair) {
509 509
 			if ($pair['key'] === 'password') {
510 510
 				$pair['value'] = $this->decryptValue($pair['value']);
511 511
 			}
512 512
 			return $pair;
513 513
 		}, $keyValuePairs);
514
-		$keys = array_map(function ($pair) {
514
+		$keys = array_map(function($pair) {
515 515
 			return $pair['key'];
516 516
 		}, $decryptedPairts);
517
-		$values = array_map(function ($pair) {
517
+		$values = array_map(function($pair) {
518 518
 			return $pair['value'];
519 519
 		}, $decryptedPairts);
520 520
 
Please login to merge, or discard this patch.
core/Command/Group/Info.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 		$gid = $input->getArgument('groupid');
68 68
 		$group = $this->groupManager->get($gid);
69 69
 		if (!$group instanceof IGroup) {
70
-			$output->writeln('<error>Group "' . $gid . '" does not exist.</error>');
70
+			$output->writeln('<error>Group "'.$gid.'" does not exist.</error>');
71 71
 			return 1;
72 72
 		} else {
73 73
 			$groupOutput = [
Please login to merge, or discard this patch.
lib/private/Contacts/ContactsMenu/Entry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 	 * sort the actions by priority and name
118 118
 	 */
119 119
 	private function sortActions(): void {
120
-		usort($this->actions, function (IAction $action1, IAction $action2) {
120
+		usort($this->actions, function(IAction $action1, IAction $action2) {
121 121
 			$prio1 = $action1->getPriority();
122 122
 			$prio2 = $action2->getPriority();
123 123
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 	 */
155 155
 	public function jsonSerialize(): array {
156 156
 		$topAction = !empty($this->actions) ? $this->actions[0]->jsonSerialize() : null;
157
-		$otherActions = array_map(function (IAction $action) {
157
+		$otherActions = array_map(function(IAction $action) {
158 158
 			return $action->jsonSerialize();
159 159
 		}, array_slice($this->actions, 1));
160 160
 
Please login to merge, or discard this patch.
apps/provisioning_api/lib/AppInfo/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	public function register(IRegistrationContext $context): void {
61 61
 		$context->registerEventListener(UserDeletedEvent::class, UserDeletedListener::class);
62 62
 
63
-		$context->registerService(NewUserMailHelper::class, function (ContainerInterface $c) {
63
+		$context->registerService(NewUserMailHelper::class, function(ContainerInterface $c) {
64 64
 			return new NewUserMailHelper(
65 65
 				$c->get(Defaults::class),
66 66
 				$c->get(IURLGenerator::class),
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 				Util::getDefaultEmailAddress('no-reply')
74 74
 			);
75 75
 		});
76
-		$context->registerService(ProvisioningApiMiddleware::class, function (ContainerInterface $c) {
76
+		$context->registerService(ProvisioningApiMiddleware::class, function(ContainerInterface $c) {
77 77
 			$user = $c->get(IUserManager::class)->get($c->get('UserId'));
78 78
 			$isAdmin = false;
79 79
 			$isSubAdmin = false;
Please login to merge, or discard this patch.