@@ -167,7 +167,7 @@ |
||
167 | 167 | * @return bool |
168 | 168 | */ |
169 | 169 | public function isFlagSet(int $flag): bool { |
170 | - return (bool)($this->flags & $flag); |
|
170 | + return (bool) ($this->flags & $flag); |
|
171 | 171 | } |
172 | 172 | |
173 | 173 | /** |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | $uid = $input->getArgument('uid'); |
118 | 118 | $user = $this->userManager->get($uid); |
119 | 119 | if (!$user) { |
120 | - throw new \InvalidArgumentException('The user "' . $uid . '" does not exist.'); |
|
120 | + throw new \InvalidArgumentException('The user "'.$uid.'" does not exist.'); |
|
121 | 121 | } |
122 | 122 | // normalize uid |
123 | 123 | $input->setArgument('uid', $user->getUID()); |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | try { |
156 | 156 | $this->checkInput($input); |
157 | 157 | } catch (\InvalidArgumentException $e) { |
158 | - $output->writeln('<error>' . $e->getMessage() . '</error>'); |
|
158 | + $output->writeln('<error>'.$e->getMessage().'</error>'); |
|
159 | 159 | return 1; |
160 | 160 | } |
161 | 161 | |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $value = $this->config->getUserValue($uid, $app, $key, null); |
168 | 168 | if ($input->getArgument('value') !== null) { |
169 | 169 | if ($input->hasParameterOption('--update-only') && $value === null) { |
170 | - $output->writeln('<error>The setting does not exist for user "' . $uid . '".</error>'); |
|
170 | + $output->writeln('<error>The setting does not exist for user "'.$uid.'".</error>'); |
|
171 | 171 | return 1; |
172 | 172 | } |
173 | 173 | |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | return 0; |
198 | 198 | } elseif ($input->hasParameterOption('--delete')) { |
199 | 199 | if ($input->hasParameterOption('--error-if-not-exists') && $value === null) { |
200 | - $output->writeln('<error>The setting does not exist for user "' . $uid . '".</error>'); |
|
200 | + $output->writeln('<error>The setting does not exist for user "'.$uid.'".</error>'); |
|
201 | 201 | return 1; |
202 | 202 | } |
203 | 203 | |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | $output->writeln($user->getDisplayName()); |
230 | 230 | return 0; |
231 | 231 | } |
232 | - $output->writeln('<error>The setting does not exist for user "' . $uid . '".</error>'); |
|
232 | + $output->writeln('<error>The setting does not exist for user "'.$uid.'".</error>'); |
|
233 | 233 | return 1; |
234 | 234 | } |
235 | 235 | } else { |
@@ -69,8 +69,8 @@ |
||
69 | 69 | 'status' => $this->getOCSStatus() === 100 ? 'ok' : 'failure', |
70 | 70 | 'statuscode' => $this->getOCSStatus(), |
71 | 71 | 'message' => $this->getOCSStatus() === 100 ? 'OK' : $this->statusMessage ?? '', |
72 | - 'totalitems' => (string)($this->itemsCount ?? ''), |
|
73 | - 'itemsperpage' => (string)($this->itemsPerPage ?? ''), |
|
72 | + 'totalitems' => (string) ($this->itemsCount ?? ''), |
|
73 | + 'itemsperpage' => (string) ($this->itemsPerPage ?? ''), |
|
74 | 74 | ]; |
75 | 75 | |
76 | 76 | return $this->renderResult($meta); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | $this->logger = $logger; |
138 | 138 | } |
139 | 139 | |
140 | - public function for(string $appId): IRegistrationContext { |
|
140 | + public function for (string $appId): IRegistrationContext { |
|
141 | 141 | return new class($appId, $this) implements IRegistrationContext { |
142 | 142 | /** @var string */ |
143 | 143 | private $appId; |
@@ -479,7 +479,7 @@ discard block |
||
479 | 479 | ->getContainer() |
480 | 480 | ->registerCapability($registration->getService()); |
481 | 481 | } catch (Throwable $e) { |
482 | - $this->logger->error("Error during capability registration of $appId: " . $e->getMessage(), [ |
|
482 | + $this->logger->error("Error during capability registration of $appId: ".$e->getMessage(), [ |
|
483 | 483 | 'exception' => $e, |
484 | 484 | ]); |
485 | 485 | } |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | $registry->registerLazy($registration->getService()); |
496 | 496 | } catch (Throwable $e) { |
497 | 497 | $appId = $registration->getAppId(); |
498 | - $this->logger->error("Error during crash reporter registration of $appId: " . $e->getMessage(), [ |
|
498 | + $this->logger->error("Error during crash reporter registration of $appId: ".$e->getMessage(), [ |
|
499 | 499 | 'exception' => $e, |
500 | 500 | ]); |
501 | 501 | } |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | $dashboardManager->lazyRegisterWidget($panel->getService(), $panel->getAppId()); |
512 | 512 | } catch (Throwable $e) { |
513 | 513 | $appId = $panel->getAppId(); |
514 | - $this->logger->error("Error during dashboard registration of $appId: " . $e->getMessage(), [ |
|
514 | + $this->logger->error("Error during dashboard registration of $appId: ".$e->getMessage(), [ |
|
515 | 515 | 'exception' => $e, |
516 | 516 | ]); |
517 | 517 | } |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | ); |
529 | 529 | } catch (Throwable $e) { |
530 | 530 | $appId = $registration->getAppId(); |
531 | - $this->logger->error("Error during event listener registration of $appId: " . $e->getMessage(), [ |
|
531 | + $this->logger->error("Error during event listener registration of $appId: ".$e->getMessage(), [ |
|
532 | 532 | 'exception' => $e, |
533 | 533 | ]); |
534 | 534 | } |
@@ -561,7 +561,7 @@ discard block |
||
561 | 561 | $registration->isShared() |
562 | 562 | ); |
563 | 563 | } catch (Throwable $e) { |
564 | - $this->logger->error("Error during service registration of $appId: " . $e->getMessage(), [ |
|
564 | + $this->logger->error("Error during service registration of $appId: ".$e->getMessage(), [ |
|
565 | 565 | 'exception' => $e, |
566 | 566 | ]); |
567 | 567 | } |
@@ -585,7 +585,7 @@ discard block |
||
585 | 585 | $registration->getTarget() |
586 | 586 | ); |
587 | 587 | } catch (Throwable $e) { |
588 | - $this->logger->error("Error during service alias registration of $appId: " . $e->getMessage(), [ |
|
588 | + $this->logger->error("Error during service alias registration of $appId: ".$e->getMessage(), [ |
|
589 | 589 | 'exception' => $e, |
590 | 590 | ]); |
591 | 591 | } |
@@ -609,7 +609,7 @@ discard block |
||
609 | 609 | $registration->getValue() |
610 | 610 | ); |
611 | 611 | } catch (Throwable $e) { |
612 | - $this->logger->error("Error during service parameter registration of $appId: " . $e->getMessage(), [ |
|
612 | + $this->logger->error("Error during service parameter registration of $appId: ".$e->getMessage(), [ |
|
613 | 613 | 'exception' => $e, |
614 | 614 | ]); |
615 | 615 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | $providers = $this->manager->getDiscoverableProviders(); |
58 | - $jsonProviders = array_map(static function (IDiscoverableReferenceProvider $provider) { |
|
58 | + $jsonProviders = array_map(static function(IDiscoverableReferenceProvider $provider) { |
|
59 | 59 | return $provider->jsonSerialize(); |
60 | 60 | }, $providers); |
61 | 61 | $this->initialStateService->provideInitialState('core', 'reference-provider-list', $jsonProviders); |
@@ -64,7 +64,7 @@ |
||
64 | 64 | */ |
65 | 65 | public function getForm(): TemplateResponse { |
66 | 66 | $cloudID = $this->userSession->getUser()->getCloudId(); |
67 | - $url = 'https://nextcloud.com/sharing#' . $cloudID; |
|
67 | + $url = 'https://nextcloud.com/sharing#'.$cloudID; |
|
68 | 68 | |
69 | 69 | $this->initialState->provideInitialState('color', $this->defaults->getDefaultColorPrimary()); |
70 | 70 | $this->initialState->provideInitialState('textColor', $this->defaults->getDefaultTextColorPrimary()); |
@@ -20,6 +20,6 @@ |
||
20 | 20 | ); |
21 | 21 | } |
22 | 22 | |
23 | -require_once __DIR__ . '/composer/autoload_real.php'; |
|
23 | +require_once __DIR__.'/composer/autoload_real.php'; |
|
24 | 24 | |
25 | 25 | return ComposerAutoloaderInitDashboard::getLoader(); |
@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'OCA\\Dashboard\\' => array($baseDir . '/../lib'), |
|
9 | + 'OCA\\Dashboard\\' => array($baseDir.'/../lib'), |
|
10 | 10 | ); |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | public static function loadClassLoader($class) |
10 | 10 | { |
11 | 11 | if ('Composer\Autoload\ClassLoader' === $class) { |
12 | - require __DIR__ . '/ClassLoader.php'; |
|
12 | + require __DIR__.'/ClassLoader.php'; |
|
13 | 13 | } |
14 | 14 | } |
15 | 15 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); |
27 | 27 | spl_autoload_unregister(array('ComposerAutoloaderInitDashboard', 'loadClassLoader')); |
28 | 28 | |
29 | - require __DIR__ . '/autoload_static.php'; |
|
29 | + require __DIR__.'/autoload_static.php'; |
|
30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitDashboard::getInitializer($loader)); |
31 | 31 | |
32 | 32 | $loader->setClassMapAuthoritative(true); |