@@ -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()); |
@@ -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); |
@@ -370,18 +370,18 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -6,5 +6,5 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'OCA\\WeatherStatus\\' => array($baseDir . '/../lib'), |
|
| 9 | + 'OCA\\WeatherStatus\\' => array($baseDir.'/../lib'), |
|
| 10 | 10 | ); |
@@ -370,18 +370,18 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |