Completed
Push — master ( ed3474...16e3d3 )
by
unknown
26s
created
lib/Handlers/WebfingerHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 				'version' => $this->configService->getAppValue('installed_version'),
88 88
 				'api' => Application::APP_API
89 89
 			];
90
-		} catch (UnknownInterfaceException|SignatoryException $e) {
90
+		} catch (UnknownInterfaceException | SignatoryException $e) {
91 91
 			return $response;
92 92
 		}
93 93
 
Please login to merge, or discard this patch.
lib/Model/ShareWrapper.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
 			$l10n = \OCP\Server::get(IFactory::class)->get('circles');
448 448
 			$display = $l10n->t('%s (Team owned by %s)', [$display, $circle->getOwner()->getDisplayName()]);
449 449
 		} else {
450
-			$display .= ' (' . Circle::$DEF_SOURCE[$circle->getSource()] . ')';
450
+			$display .= ' ('.Circle::$DEF_SOURCE[$circle->getSource()].')';
451 451
 		}
452 452
 
453 453
 		$share->setSharedWithDisplayName($display);
@@ -533,20 +533,20 @@  discard block
 block discarded – undo
533 533
 
534 534
 	public function importFromDatabase(array $data, string $prefix = ''): IQueryRow {
535 535
 		$shareTime = new DateTime();
536
-		$shareTime->setTimestamp($this->getInt($prefix . 'stime', $data));
537
-
538
-		$this->setId($this->get($prefix . 'id', $data))
539
-			 ->setShareType($this->getInt($prefix . 'share_type', $data))
540
-			 ->setPermissions($this->getInt($prefix . 'permissions', $data))
541
-			 ->setItemType($this->get($prefix . 'item_type', $data))
542
-			 ->setItemSource($this->getInt($prefix . 'item_source', $data))
543
-			 ->setItemTarget($this->get($prefix . 'item_target', $data))
544
-			 ->setFileSource($this->getInt($prefix . 'file_source', $data))
545
-			 ->setFileTarget($this->get($prefix . 'file_target', $data))
546
-			 ->setSharedWith($this->get($prefix . 'share_with', $data))
547
-			 ->setSharedBy($this->get($prefix . 'uid_initiator', $data))
548
-			 ->setShareOwner($this->get($prefix . 'uid_owner', $data))
549
-			 ->setToken($this->get($prefix . 'token', $data))
536
+		$shareTime->setTimestamp($this->getInt($prefix.'stime', $data));
537
+
538
+		$this->setId($this->get($prefix.'id', $data))
539
+			 ->setShareType($this->getInt($prefix.'share_type', $data))
540
+			 ->setPermissions($this->getInt($prefix.'permissions', $data))
541
+			 ->setItemType($this->get($prefix.'item_type', $data))
542
+			 ->setItemSource($this->getInt($prefix.'item_source', $data))
543
+			 ->setItemTarget($this->get($prefix.'item_target', $data))
544
+			 ->setFileSource($this->getInt($prefix.'file_source', $data))
545
+			 ->setFileTarget($this->get($prefix.'file_target', $data))
546
+			 ->setSharedWith($this->get($prefix.'share_with', $data))
547
+			 ->setSharedBy($this->get($prefix.'uid_initiator', $data))
548
+			 ->setShareOwner($this->get($prefix.'uid_owner', $data))
549
+			 ->setToken($this->get($prefix.'token', $data))
550 550
 			 ->setShareTime($shareTime);
551 551
 
552 552
 		$this->importAttributesFromDatabase($this->get('attributes', $data));
@@ -557,9 +557,9 @@  discard block
 block discarded – undo
557 557
 		//			$share->setPassword($this->get('password', $data, ''));
558 558
 		//		}
559 559
 
560
-		$this->setChildId($this->getInt($prefix . 'child_id', $data))
561
-			 ->setChildFileTarget($this->get($prefix . 'child_file_target', $data))
562
-			 ->setChildPermissions($this->getInt($prefix . 'child_permissions', $data))
560
+		$this->setChildId($this->getInt($prefix.'child_id', $data))
561
+			 ->setChildFileTarget($this->get($prefix.'child_file_target', $data))
562
+			 ->setChildPermissions($this->getInt($prefix.'child_permissions', $data))
563 563
 			 ->setProviderId(ShareByCircleProvider::IDENTIFIER)
564 564
 			 ->setStatus(Ishare::STATUS_ACCEPTED);
565 565
 
Please login to merge, or discard this patch.
lib/Dashboard/TeamDashboardWidget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 				->setItemsLimit($limit)
77 77
 				->setItemsOffset($since ? (int)$since : 0);
78 78
 
79
-			$circles = array_map(function (Circle $circle) {
79
+			$circles = array_map(function(Circle $circle) {
80 80
 				return new WidgetItem(
81 81
 					$circle->getDisplayName(),
82 82
 					'',
Please login to merge, or discard this patch.
lib/FileSharingTeamResourceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,18 +59,18 @@  discard block
 block discarded – undo
59 59
 		}
60 60
 
61 61
 		$shares = $this->shareByCircleProvider->getSharesToCircle($teamId);
62
-		usort($shares, function ($a, $b) {
62
+		usort($shares, function($a, $b) {
63 63
 			return (int)($b->getItemType() === 'folder') - (int)($a->getItemType() === 'folder');
64 64
 		});
65
-		return array_map(function (ShareWrapper $shareWrapper) {
65
+		return array_map(function(ShareWrapper $shareWrapper) {
66 66
 			$isFolder = $shareWrapper->getItemType() === 'folder';
67 67
 			return new TeamResource(
68 68
 				$this,
69 69
 				(string)$shareWrapper->getFileSource(),
70 70
 				basename($shareWrapper->getFileTarget()),
71
-				$this->urlGenerator->getAbsoluteURL('/index.php/f/' . $shareWrapper->getFileSource()),
71
+				$this->urlGenerator->getAbsoluteURL('/index.php/f/'.$shareWrapper->getFileSource()),
72 72
 				iconSvg: $isFolder ? '<svg xmlns="http://www.w3.org/2000/svg" id="mdi-folder" viewBox="0 0 24 24"><path d="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z" /></svg>' : null,
73
-				iconURL: !$isFolder ?
73
+				iconURL : !$isFolder ?
74 74
 					$this->urlGenerator->linkToRouteAbsolute('core.preview.getPreviewByFileId', ['fileId' => $shareWrapper->getFileSource(), 'mimeFallback' => true, ])
75 75
 					: null,
76 76
 			);
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 			return false;
83 83
 		}
84 84
 
85
-		return count(array_filter($this->getSharedWith($teamId), function (TeamResource $resource) use ($resourceId) {
85
+		return count(array_filter($this->getSharedWith($teamId), function(TeamResource $resource) use ($resourceId) {
86 86
 			return $resource->getId() === $resourceId;
87 87
 		})) !== 0;
88 88
 	}
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
 		$shares = $this->shareByCircleProvider->getSharesByFileId((int)$resourceId);
96 96
 
97
-		return array_map(function ($share) {
97
+		return array_map(function($share) {
98 98
 			return $share->getSharedWith();
99 99
 		}, $shares);
100 100
 	}
Please login to merge, or discard this patch.
lib/Activity/ProviderParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
 				continue;
126 126
 			}
127 127
 
128
-			$replace['{' . $k . '}'] = $data[$k]['_parsed'];
128
+			$replace['{'.$k.'}'] = $data[$k]['_parsed'];
129 129
 		}
130 130
 
131 131
 		$event->setParsedSubject(strtr($line, $replace));
Please login to merge, or discard this patch.
lib/Command/CirclesMaintenance.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 				'<error>WARNING! You are about to delete all data related to the Circles App!</error>'
109 109
 			);
110 110
 			$question = new ConfirmationQuestion(
111
-				'<comment>Do you really want to ' . $action . ' Circles ?</comment> (y/N) ', false,
111
+				'<comment>Do you really want to '.$action.' Circles ?</comment> (y/N) ', false,
112 112
 				'/^(y|Y)/i'
113 113
 			);
114 114
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 			$output->writeln('<error>WARNING! This operation is not reversible.</error>');
124 124
 
125 125
 			$question = new Question(
126
-				'<comment>Please confirm this destructive operation by typing \'' . $action
126
+				'<comment>Please confirm this destructive operation by typing \''.$action
127 127
 				. '\'</comment>: ', ''
128 128
 			);
129 129
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 				$this->coreRequestBuilder->uninstall();
141 141
 			}
142 142
 
143
-			$output->writeln('<info>' . $action . ' done</info>');
143
+			$output->writeln('<info>'.$action.' done</info>');
144 144
 
145 145
 			return 0;
146 146
 		}
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 		$federatedUser = $this->federatedUserService->getLocalFederatedUser($userId);
172 172
 		$displayName = $this->maintenanceService->updateDisplayName($federatedUser);
173 173
 		if ($displayName !== '') {
174
-			$output->writeln('Display name of ' . $federatedUser->getSingleId() . ' updated to ' . $displayName);
174
+			$output->writeln('Display name of '.$federatedUser->getSingleId().' updated to '.$displayName);
175 175
 		}
176 176
 
177 177
 		return 0;
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 			try {
187 187
 				$this->refreshSingleDisplayName($row['uid'], $output);
188 188
 			} catch (Exception $e) {
189
-				$output->writeln(get_class($e) . ' while trying to update display name of ' . $row['uid']);
189
+				$output->writeln(get_class($e).' while trying to update display name of '.$row['uid']);
190 190
 			}
191 191
 		}
192 192
 	}
Please login to merge, or discard this patch.