Passed
Push — master ( b2075d...4ac4f4 )
by Joas
28:52 queued 14:19
created
lib/private/Authentication/WebAuthn/Manager.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -84,13 +84,13 @@  discard block
 block discarded – undo
84 84
 	public function startRegistration(IUser $user, string $serverHost): PublicKeyCredentialCreationOptions {
85 85
 		$rpEntity = new PublicKeyCredentialRpEntity(
86 86
 			'Nextcloud', //Name
87
-			$this->stripPort($serverHost),        //ID
87
+			$this->stripPort($serverHost), //ID
88 88
 			null                            //Icon
89 89
 		);
90 90
 
91 91
 		$userEntity = new PublicKeyCredentialUserEntity(
92
-			$user->getUID(),                              //Name
93
-			$user->getUID(),                              //ID
92
+			$user->getUID(), //Name
93
+			$user->getUID(), //ID
94 94
 			$user->getDisplayName()                      //Display name
95 95
 //            'https://foo.example.co/avatar/123e4567-e89b-12d3-a456-426655440000' //Icon
96 96
 		);
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 
178 178
 	public function startAuthentication(string $uid, string $serverHost): PublicKeyCredentialRequestOptions {
179 179
 		// List of registered PublicKeyCredentialDescriptor classes associated to the user
180
-		$registeredPublicKeyCredentialDescriptors = array_map(function (PublicKeyCredentialEntity $entity) {
180
+		$registeredPublicKeyCredentialDescriptors = array_map(function(PublicKeyCredentialEntity $entity) {
181 181
 			$credential = $entity->toPublicKeyCredentialSource();
182 182
 			return new PublicKeyCredentialDescriptor(
183 183
 				$credential->getType(),
@@ -187,10 +187,10 @@  discard block
 block discarded – undo
187 187
 
188 188
 		// Public Key Credential Request Options
189 189
 		return new PublicKeyCredentialRequestOptions(
190
-			random_bytes(32),                                                    // Challenge
191
-			60000,                                                              // Timeout
192
-			$this->stripPort($serverHost),                                                                  // Relying Party ID
193
-			$registeredPublicKeyCredentialDescriptors,                                  // Registered PublicKeyCredentialDescriptor classes
190
+			random_bytes(32), // Challenge
191
+			60000, // Timeout
192
+			$this->stripPort($serverHost), // Relying Party ID
193
+			$registeredPublicKeyCredentialDescriptors, // Registered PublicKeyCredentialDescriptor classes
194 194
 			AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_DISCOURAGED
195 195
 		);
196 196
 	}
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 		);
217 217
 
218 218
 		try {
219
-			$this->logger->debug('Loading publickey credentials from: ' . $data);
219
+			$this->logger->debug('Loading publickey credentials from: '.$data);
220 220
 
221 221
 			// Load the data
222 222
 			$publicKeyCredential = $publicKeyCredentialLoader->load($data);
Please login to merge, or discard this patch.
apps/contactsinteraction/lib/Listeners/ContactInteractionListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
 				$contact->setCard($parsed->serialize());
127 127
 			} catch (Throwable $e) {
128 128
 				$this->logger->warning(
129
-					'Could not parse card to add recent category: ' . $e->getMessage(),
129
+					'Could not parse card to add recent category: '.$e->getMessage(),
130 130
 					[
131 131
 						'exception' => $e,
132 132
 					]);
Please login to merge, or discard this patch.
apps/files_versions/lib/AppInfo/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 		/**
64 64
 		 * Register $principalBackend for the DAV collection
65 65
 		 */
66
-		$context->registerService('principalBackend', function (ContainerInterface $c) {
66
+		$context->registerService('principalBackend', function(ContainerInterface $c) {
67 67
 			/** @var IServerContainer $server */
68 68
 			$server = $c->get(IServerContainer::class);
69 69
 			return new Principal(
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 			);
78 78
 		});
79 79
 
80
-		$context->registerService(IVersionManager::class, function () {
80
+		$context->registerService(IVersionManager::class, function() {
81 81
 			return new VersionManager();
82 82
 		});
83 83
 
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Command/Size.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
 				return -1;
75 75
 			}
76 76
 			if ($user) {
77
-				$this->config->setUserValue($user, 'files_trashbin', 'trashbin_size', (string)$parsedSize);
77
+				$this->config->setUserValue($user, 'files_trashbin', 'trashbin_size', (string) $parsedSize);
78 78
 				$this->commandBus->push(new Expire($user));
79 79
 			} else {
80
-				$this->config->setAppValue('files_trashbin', 'trashbin_size', (string)$parsedSize);
80
+				$this->config->setAppValue('files_trashbin', 'trashbin_size', (string) $parsedSize);
81 81
 				$output->writeln("<info>Warning: changing the default trashbin size will automatically trigger cleanup of existing trashbins,</info>");
82 82
 				$output->writeln("<info>a users trashbin can exceed the configured size until they move a new file to the trashbin.</info>");
83 83
 			}
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 	}
90 90
 
91 91
 	private function printTrashbinSize(InputInterface $input, OutputInterface $output, ?string $user) {
92
-		$globalSize = (int)$this->config->getAppValue('files_trashbin', 'trashbin_size', '-1');
92
+		$globalSize = (int) $this->config->getAppValue('files_trashbin', 'trashbin_size', '-1');
93 93
 		if ($globalSize < 0) {
94 94
 			$globalHumanSize = "default (50% of available space)";
95 95
 		} else {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 		}
98 98
 
99 99
 		if ($user) {
100
-			$userSize = (int)$this->config->getUserValue($user, 'files_trashbin', 'trashbin_size', '-1');
100
+			$userSize = (int) $this->config->getUserValue($user, 'files_trashbin', 'trashbin_size', '-1');
101 101
 
102 102
 			if ($userSize < 0) {
103 103
 				$userHumanSize = ($globalSize < 0) ? $globalHumanSize : "default($globalHumanSize)";
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 			}
119 119
 		} else {
120 120
 			$users = [];
121
-			$this->userManager->callForSeenUsers(function (IUser $user) use (&$users) {
121
+			$this->userManager->callForSeenUsers(function(IUser $user) use (&$users) {
122 122
 				$users[] = $user->getUID();
123 123
 			});
124 124
 			$userValues = $this->config->getUserValueForUsers('files_trashbin', 'trashbin_size', $users);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 				$output->writeln("");
129 129
 				if (count($userValues)) {
130 130
 					$output->writeln("Per-user sizes:");
131
-					$this->writeArrayInOutputFormat($input, $output, array_map(function ($size) {
131
+					$this->writeArrayInOutputFormat($input, $output, array_map(function($size) {
132 132
 						return \OC_Helper::humanFileSize($size);
133 133
 					}, $userValues));
134 134
 				} else {
Please login to merge, or discard this patch.
apps/theming/lib/Listener/BeforeTemplateRenderedListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
 	public function handle(Event $event): void {
62 62
 		$serverContainer = $this->serverContainer;
63
-		$this->initialStateService->provideLazyInitialState(Application::APP_ID, 'data', function () use ($serverContainer) {
63
+		$this->initialStateService->provideLazyInitialState(Application::APP_ID, 'data', function() use ($serverContainer) {
64 64
 			return $serverContainer->query(JSDataService::class);
65 65
 		});
66 66
 
Please login to merge, or discard this patch.
apps/user_status/composer/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,6 +2,6 @@
 block discarded – undo
2 2
 
3 3
 // autoload.php @generated by Composer
4 4
 
5
-require_once __DIR__ . '/composer/autoload_real.php';
5
+require_once __DIR__.'/composer/autoload_real.php';
6 6
 
7 7
 return ComposerAutoloaderInitUserStatus::getLoader();
Please login to merge, or discard this patch.
apps/user_status/composer/composer/autoload_psr4.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'OCA\\UserStatus\\' => array($baseDir . '/../lib'),
9
+    'OCA\\UserStatus\\' => array($baseDir.'/../lib'),
10 10
 );
Please login to merge, or discard this patch.
apps/user_status/composer/composer/ClassLoader.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -370,18 +370,18 @@  discard block
 block discarded – undo
370 370
     private function findFileWithExtension($class, $ext)
371 371
     {
372 372
         // PSR-4 lookup
373
-        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
373
+        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext;
374 374
 
375 375
         $first = $class[0];
376 376
         if (isset($this->prefixLengthsPsr4[$first])) {
377 377
             $subPath = $class;
378 378
             while (false !== $lastPos = strrpos($subPath, '\\')) {
379 379
                 $subPath = substr($subPath, 0, $lastPos);
380
-                $search = $subPath . '\\';
380
+                $search = $subPath.'\\';
381 381
                 if (isset($this->prefixDirsPsr4[$search])) {
382
-                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
382
+                    $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1);
383 383
                     foreach ($this->prefixDirsPsr4[$search] as $dir) {
384
-                        if (file_exists($file = $dir . $pathEnd)) {
384
+                        if (file_exists($file = $dir.$pathEnd)) {
385 385
                             return $file;
386 386
                         }
387 387
                     }
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
 
392 392
         // PSR-4 fallback dirs
393 393
         foreach ($this->fallbackDirsPsr4 as $dir) {
394
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
394
+            if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) {
395 395
                 return $file;
396 396
             }
397 397
         }
@@ -403,14 +403,14 @@  discard block
 block discarded – undo
403 403
                 . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
404 404
         } else {
405 405
             // PEAR-like class name
406
-            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
406
+            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext;
407 407
         }
408 408
 
409 409
         if (isset($this->prefixesPsr0[$first])) {
410 410
             foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
411 411
                 if (0 === strpos($class, $prefix)) {
412 412
                     foreach ($dirs as $dir) {
413
-                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
413
+                        if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
414 414
                             return $file;
415 415
                         }
416 416
                     }
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
 
421 421
         // PSR-0 fallback dirs
422 422
         foreach ($this->fallbackDirsPsr0 as $dir) {
423
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
423
+            if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
424 424
                 return $file;
425 425
             }
426 426
         }
Please login to merge, or discard this patch.
apps/dav/lib/Search/EventsSearchProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 			return SearchResult::complete($this->getName(), []);
96 96
 		}
97 97
 
98
-		$principalUri = 'principals/users/' . $user->getUID();
98
+		$principalUri = 'principals/users/'.$user->getUID();
99 99
 		$calendarsById = $this->getSortedCalendars($principalUri);
100 100
 		$subscriptionsById = $this->getSortedSubscriptions($principalUri);
101 101
 
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
 				'offset' => $query->getCursor(),
111 111
 			]
112 112
 		);
113
-		$formattedResults = \array_map(function (array $eventRow) use ($calendarsById, $subscriptionsById):SearchResultEntry {
113
+		$formattedResults = \array_map(function(array $eventRow) use ($calendarsById, $subscriptionsById):SearchResultEntry {
114 114
 			$component = $this->getPrimaryComponent($eventRow['calendardata'], self::$componentType);
115
-			$title = (string)($component->SUMMARY ?? $this->l10n->t('Untitled event'));
115
+			$title = (string) ($component->SUMMARY ?? $this->l10n->t('Untitled event'));
116 116
 			$subline = $this->generateSubline($component);
117 117
 
118 118
 			if ($eventRow['calendartype'] === CalDavBackend::CALENDAR_TYPE_CALENDAR) {
@@ -161,9 +161,9 @@  discard block
 block discarded – undo
161 161
 												  string $calendarObjectUri): string {
162 162
 		[,, $principalId] = explode('/', $principalUri, 3);
163 163
 
164
-		return $this->urlGenerator->linkTo('', 'remote.php') . '/dav/calendars/'
165
-			. $principalId . '/'
166
-			. $calendarUri . '/'
164
+		return $this->urlGenerator->linkTo('', 'remote.php').'/dav/calendars/'
165
+			. $principalId.'/'
166
+			. $calendarUri.'/'
167 167
 			. $calendarObjectUri;
168 168
 	}
169 169
 
Please login to merge, or discard this patch.