@@ -121,13 +121,13 @@ discard block |
||
| 121 | 121 | |
| 122 | 122 | if ($entity !== '') { |
| 123 | 123 | if ($baseUrl !== '') { |
| 124 | - $footer = '<a href="' . $baseUrl . '" target="_blank"' |
|
| 125 | - . ' rel="noreferrer noopener" class="entity-name">' . $entity . '</a>'; |
|
| 124 | + $footer = '<a href="'.$baseUrl.'" target="_blank"' |
|
| 125 | + . ' rel="noreferrer noopener" class="entity-name">'.$entity.'</a>'; |
|
| 126 | 126 | } else { |
| 127 | - $footer = '<span class="entity-name">' . $entity . '</span>'; |
|
| 127 | + $footer = '<span class="entity-name">'.$entity.'</span>'; |
|
| 128 | 128 | } |
| 129 | 129 | } |
| 130 | - $footer .= ($slogan !== '' ? ' – ' . $slogan : ''); |
|
| 130 | + $footer .= ($slogan !== '' ? ' – '.$slogan : ''); |
|
| 131 | 131 | |
| 132 | 132 | $links = [ |
| 133 | 133 | [ |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | ]; |
| 142 | 142 | |
| 143 | 143 | $navigation = $this->navigationManager->getAll(INavigationManager::TYPE_GUEST); |
| 144 | - $guestNavigation = array_map(function ($nav) { |
|
| 144 | + $guestNavigation = array_map(function($nav) { |
|
| 145 | 145 | return [ |
| 146 | 146 | 'text' => $nav['name'], |
| 147 | 147 | 'url' => $nav['href'] |
@@ -155,13 +155,13 @@ discard block |
||
| 155 | 155 | if ($link['url'] !== '' |
| 156 | 156 | && filter_var($link['url'], FILTER_VALIDATE_URL) |
| 157 | 157 | ) { |
| 158 | - $legalLinks .= $divider . '<a href="' . $link['url'] . '" class="legal" target="_blank"' |
|
| 159 | - . ' rel="noreferrer noopener">' . $link['text'] . '</a>'; |
|
| 158 | + $legalLinks .= $divider.'<a href="'.$link['url'].'" class="legal" target="_blank"' |
|
| 159 | + . ' rel="noreferrer noopener">'.$link['text'].'</a>'; |
|
| 160 | 160 | $divider = ' · '; |
| 161 | 161 | } |
| 162 | 162 | } |
| 163 | 163 | if ($legalLinks !== '') { |
| 164 | - $footer .= '<br/><span class="footer__legal-links">' . $legalLinks . '</span>'; |
|
| 164 | + $footer .= '<br/><span class="footer__legal-links">'.$legalLinks.'</span>'; |
|
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | return $footer; |
@@ -270,17 +270,17 @@ discard block |
||
| 270 | 270 | } |
| 271 | 271 | } |
| 272 | 272 | |
| 273 | - $cacheBusterCounter = (string)$this->appConfig->getAppValueInt(ConfigLexicon::CACHE_BUSTER); |
|
| 273 | + $cacheBusterCounter = (string) $this->appConfig->getAppValueInt(ConfigLexicon::CACHE_BUSTER); |
|
| 274 | 274 | if (!$logo || !$logoExists) { |
| 275 | 275 | if ($useSvg) { |
| 276 | 276 | $logo = $this->urlGenerator->imagePath('core', 'logo/logo.svg'); |
| 277 | 277 | } else { |
| 278 | 278 | $logo = $this->urlGenerator->imagePath('core', 'logo/logo.png'); |
| 279 | 279 | } |
| 280 | - return $logo . '?v=' . $cacheBusterCounter; |
|
| 280 | + return $logo.'?v='.$cacheBusterCounter; |
|
| 281 | 281 | } |
| 282 | 282 | |
| 283 | - return $this->urlGenerator->linkToRoute('theming.Theming.getImage', [ 'key' => 'logo', 'useSvg' => $useSvg, 'v' => $cacheBusterCounter ]); |
|
| 283 | + return $this->urlGenerator->linkToRoute('theming.Theming.getImage', ['key' => 'logo', 'useSvg' => $useSvg, 'v' => $cacheBusterCounter]); |
|
| 284 | 284 | } |
| 285 | 285 | |
| 286 | 286 | /** |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | * @return string |
| 291 | 291 | */ |
| 292 | 292 | public function getBackground(bool $darkVariant = false): string { |
| 293 | - return $this->imageManager->getImageUrl('background' . ($darkVariant ? 'Dark' : '')); |
|
| 293 | + return $this->imageManager->getImageUrl('background'.($darkVariant ? 'Dark' : '')); |
|
| 294 | 294 | } |
| 295 | 295 | |
| 296 | 296 | /** |
@@ -327,23 +327,23 @@ discard block |
||
| 327 | 327 | */ |
| 328 | 328 | public function getScssVariables() { |
| 329 | 329 | $cacheBuster = $this->appConfig->getAppValueInt(ConfigLexicon::CACHE_BUSTER); |
| 330 | - $cache = $this->cacheFactory->createDistributed('theming-' . (string)$cacheBuster . '-' . $this->urlGenerator->getBaseUrl()); |
|
| 330 | + $cache = $this->cacheFactory->createDistributed('theming-'.(string) $cacheBuster.'-'.$this->urlGenerator->getBaseUrl()); |
|
| 331 | 331 | if ($value = $cache->get('getScssVariables')) { |
| 332 | 332 | return $value; |
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 | $variables = [ |
| 336 | - 'theming-cachebuster' => "'" . $cacheBuster . "'", |
|
| 337 | - 'theming-logo-mime' => "'" . $this->appConfig->getAppValueString('logoMime') . "'", |
|
| 338 | - 'theming-background-mime' => "'" . $this->appConfig->getAppValueString('backgroundMime') . "'", |
|
| 339 | - 'theming-logoheader-mime' => "'" . $this->appConfig->getAppValueString('logoheaderMime') . "'", |
|
| 340 | - 'theming-favicon-mime' => "'" . $this->appConfig->getAppValueString('faviconMime') . "'" |
|
| 336 | + 'theming-cachebuster' => "'".$cacheBuster."'", |
|
| 337 | + 'theming-logo-mime' => "'".$this->appConfig->getAppValueString('logoMime')."'", |
|
| 338 | + 'theming-background-mime' => "'".$this->appConfig->getAppValueString('backgroundMime')."'", |
|
| 339 | + 'theming-logoheader-mime' => "'".$this->appConfig->getAppValueString('logoheaderMime')."'", |
|
| 340 | + 'theming-favicon-mime' => "'".$this->appConfig->getAppValueString('faviconMime')."'" |
|
| 341 | 341 | ]; |
| 342 | 342 | |
| 343 | - $variables['image-logo'] = "url('" . $this->imageManager->getImageUrl('logo') . "')"; |
|
| 344 | - $variables['image-logoheader'] = "url('" . $this->imageManager->getImageUrl('logoheader') . "')"; |
|
| 345 | - $variables['image-favicon'] = "url('" . $this->imageManager->getImageUrl('favicon') . "')"; |
|
| 346 | - $variables['image-login-background'] = "url('" . $this->imageManager->getImageUrl('background') . "')"; |
|
| 343 | + $variables['image-logo'] = "url('".$this->imageManager->getImageUrl('logo')."')"; |
|
| 344 | + $variables['image-logoheader'] = "url('".$this->imageManager->getImageUrl('logoheader')."')"; |
|
| 345 | + $variables['image-favicon'] = "url('".$this->imageManager->getImageUrl('favicon')."')"; |
|
| 346 | + $variables['image-login-background'] = "url('".$this->imageManager->getImageUrl('background')."')"; |
|
| 347 | 347 | $variables['image-login-plain'] = 'false'; |
| 348 | 348 | |
| 349 | 349 | if ($this->appConfig->getAppValueString('primary_color', '') !== '') { |
@@ -388,19 +388,19 @@ discard block |
||
| 388 | 388 | if ($image === 'manifest.json') { |
| 389 | 389 | try { |
| 390 | 390 | $appPath = $this->appManager->getAppPath($app); |
| 391 | - if (file_exists($appPath . '/img/manifest.json')) { |
|
| 391 | + if (file_exists($appPath.'/img/manifest.json')) { |
|
| 392 | 392 | return false; |
| 393 | 393 | } |
| 394 | 394 | } catch (AppPathNotFoundException $e) { |
| 395 | 395 | } |
| 396 | - $route = $this->urlGenerator->linkToRoute('theming.Theming.getManifest', ['app' => $app ]); |
|
| 396 | + $route = $this->urlGenerator->linkToRoute('theming.Theming.getManifest', ['app' => $app]); |
|
| 397 | 397 | } |
| 398 | - if (str_starts_with($image, 'filetypes/') && file_exists(\OC::$SERVERROOT . '/core/img/' . $image)) { |
|
| 398 | + if (str_starts_with($image, 'filetypes/') && file_exists(\OC::$SERVERROOT.'/core/img/'.$image)) { |
|
| 399 | 399 | $route = $this->urlGenerator->linkToRoute('theming.Icon.getThemedIcon', ['app' => $app, 'image' => $image]); |
| 400 | 400 | } |
| 401 | 401 | |
| 402 | 402 | if ($route) { |
| 403 | - return $route . '?v=' . $this->util->getCacheBuster(); |
|
| 403 | + return $route.'?v='.$this->util->getCacheBuster(); |
|
| 404 | 404 | } |
| 405 | 405 | |
| 406 | 406 | return false; |
@@ -433,7 +433,7 @@ discard block |
||
| 433 | 433 | public function set($setting, $value): void { |
| 434 | 434 | switch ($value) { |
| 435 | 435 | case ConfigLexicon::CACHE_BUSTER: |
| 436 | - $this->appConfig->setAppValueInt(ConfigLexicon::CACHE_BUSTER, (int)$value); |
|
| 436 | + $this->appConfig->setAppValueInt(ConfigLexicon::CACHE_BUSTER, (int) $value); |
|
| 437 | 437 | break; |
| 438 | 438 | case ConfigLexicon::USER_THEMING_DISABLED: |
| 439 | 439 | $value = $value === 'true' || $value === 'yes' || $value === '1'; |
@@ -494,7 +494,7 @@ discard block |
||
| 494 | 494 | case 'background': |
| 495 | 495 | case 'favicon': |
| 496 | 496 | $this->imageManager->delete($setting); |
| 497 | - $this->appConfig->deleteAppValue($setting . 'Mime'); |
|
| 497 | + $this->appConfig->deleteAppValue($setting.'Mime'); |
|
| 498 | 498 | break; |
| 499 | 499 | } |
| 500 | 500 | |
@@ -6,62 +6,62 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitTheming |
| 8 | 8 | { |
| 9 | - public static $prefixLengthsPsr4 = array ( |
|
| 9 | + public static $prefixLengthsPsr4 = array( |
|
| 10 | 10 | 'O' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'OCA\\Theming\\' => 12, |
| 13 | 13 | ), |
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | - public static $prefixDirsPsr4 = array ( |
|
| 16 | + public static $prefixDirsPsr4 = array( |
|
| 17 | 17 | 'OCA\\Theming\\' => |
| 18 | - array ( |
|
| 19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
| 18 | + array( |
|
| 19 | + 0 => __DIR__.'/..'.'/../lib', |
|
| 20 | 20 | ), |
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | - public static $classMap = array ( |
|
| 24 | - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', |
|
| 25 | - 'OCA\\Theming\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
| 26 | - 'OCA\\Theming\\Capabilities' => __DIR__ . '/..' . '/../lib/Capabilities.php', |
|
| 27 | - 'OCA\\Theming\\Command\\UpdateConfig' => __DIR__ . '/..' . '/../lib/Command/UpdateConfig.php', |
|
| 28 | - 'OCA\\Theming\\ConfigLexicon' => __DIR__ . '/..' . '/../lib/ConfigLexicon.php', |
|
| 29 | - 'OCA\\Theming\\Controller\\IconController' => __DIR__ . '/..' . '/../lib/Controller/IconController.php', |
|
| 30 | - 'OCA\\Theming\\Controller\\ThemingController' => __DIR__ . '/..' . '/../lib/Controller/ThemingController.php', |
|
| 31 | - 'OCA\\Theming\\Controller\\UserThemeController' => __DIR__ . '/..' . '/../lib/Controller/UserThemeController.php', |
|
| 32 | - 'OCA\\Theming\\ITheme' => __DIR__ . '/..' . '/../lib/ITheme.php', |
|
| 33 | - 'OCA\\Theming\\IconBuilder' => __DIR__ . '/..' . '/../lib/IconBuilder.php', |
|
| 34 | - 'OCA\\Theming\\ImageManager' => __DIR__ . '/..' . '/../lib/ImageManager.php', |
|
| 35 | - 'OCA\\Theming\\Jobs\\MigrateBackgroundImages' => __DIR__ . '/..' . '/../lib/Jobs/MigrateBackgroundImages.php', |
|
| 36 | - 'OCA\\Theming\\Jobs\\RestoreBackgroundImageColor' => __DIR__ . '/..' . '/../lib/Jobs/RestoreBackgroundImageColor.php', |
|
| 37 | - 'OCA\\Theming\\Listener\\BeforePreferenceListener' => __DIR__ . '/..' . '/../lib/Listener/BeforePreferenceListener.php', |
|
| 38 | - 'OCA\\Theming\\Listener\\BeforeTemplateRenderedListener' => __DIR__ . '/..' . '/../lib/Listener/BeforeTemplateRenderedListener.php', |
|
| 39 | - 'OCA\\Theming\\Migration\\InitBackgroundImagesMigration' => __DIR__ . '/..' . '/../lib/Migration/InitBackgroundImagesMigration.php', |
|
| 40 | - 'OCA\\Theming\\Migration\\Version2006Date20240905111627' => __DIR__ . '/..' . '/../lib/Migration/Version2006Date20240905111627.php', |
|
| 41 | - 'OCA\\Theming\\ResponseDefinitions' => __DIR__ . '/..' . '/../lib/ResponseDefinitions.php', |
|
| 42 | - 'OCA\\Theming\\Service\\BackgroundService' => __DIR__ . '/..' . '/../lib/Service/BackgroundService.php', |
|
| 43 | - 'OCA\\Theming\\Service\\JSDataService' => __DIR__ . '/..' . '/../lib/Service/JSDataService.php', |
|
| 44 | - 'OCA\\Theming\\Service\\ThemeInjectionService' => __DIR__ . '/..' . '/../lib/Service/ThemeInjectionService.php', |
|
| 45 | - 'OCA\\Theming\\Service\\ThemesService' => __DIR__ . '/..' . '/../lib/Service/ThemesService.php', |
|
| 46 | - 'OCA\\Theming\\Settings\\Admin' => __DIR__ . '/..' . '/../lib/Settings/Admin.php', |
|
| 47 | - 'OCA\\Theming\\Settings\\AdminSection' => __DIR__ . '/..' . '/../lib/Settings/AdminSection.php', |
|
| 48 | - 'OCA\\Theming\\Settings\\Personal' => __DIR__ . '/..' . '/../lib/Settings/Personal.php', |
|
| 49 | - 'OCA\\Theming\\Settings\\PersonalSection' => __DIR__ . '/..' . '/../lib/Settings/PersonalSection.php', |
|
| 50 | - 'OCA\\Theming\\SetupChecks\\PhpImagickModule' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpImagickModule.php', |
|
| 51 | - 'OCA\\Theming\\Themes\\CommonThemeTrait' => __DIR__ . '/..' . '/../lib/Themes/CommonThemeTrait.php', |
|
| 52 | - 'OCA\\Theming\\Themes\\DarkHighContrastTheme' => __DIR__ . '/..' . '/../lib/Themes/DarkHighContrastTheme.php', |
|
| 53 | - 'OCA\\Theming\\Themes\\DarkTheme' => __DIR__ . '/..' . '/../lib/Themes/DarkTheme.php', |
|
| 54 | - 'OCA\\Theming\\Themes\\DefaultTheme' => __DIR__ . '/..' . '/../lib/Themes/DefaultTheme.php', |
|
| 55 | - 'OCA\\Theming\\Themes\\DyslexiaFont' => __DIR__ . '/..' . '/../lib/Themes/DyslexiaFont.php', |
|
| 56 | - 'OCA\\Theming\\Themes\\HighContrastTheme' => __DIR__ . '/..' . '/../lib/Themes/HighContrastTheme.php', |
|
| 57 | - 'OCA\\Theming\\Themes\\LightTheme' => __DIR__ . '/..' . '/../lib/Themes/LightTheme.php', |
|
| 58 | - 'OCA\\Theming\\ThemingDefaults' => __DIR__ . '/..' . '/../lib/ThemingDefaults.php', |
|
| 59 | - 'OCA\\Theming\\Util' => __DIR__ . '/..' . '/../lib/Util.php', |
|
| 23 | + public static $classMap = array( |
|
| 24 | + 'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php', |
|
| 25 | + 'OCA\\Theming\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
| 26 | + 'OCA\\Theming\\Capabilities' => __DIR__.'/..'.'/../lib/Capabilities.php', |
|
| 27 | + 'OCA\\Theming\\Command\\UpdateConfig' => __DIR__.'/..'.'/../lib/Command/UpdateConfig.php', |
|
| 28 | + 'OCA\\Theming\\ConfigLexicon' => __DIR__.'/..'.'/../lib/ConfigLexicon.php', |
|
| 29 | + 'OCA\\Theming\\Controller\\IconController' => __DIR__.'/..'.'/../lib/Controller/IconController.php', |
|
| 30 | + 'OCA\\Theming\\Controller\\ThemingController' => __DIR__.'/..'.'/../lib/Controller/ThemingController.php', |
|
| 31 | + 'OCA\\Theming\\Controller\\UserThemeController' => __DIR__.'/..'.'/../lib/Controller/UserThemeController.php', |
|
| 32 | + 'OCA\\Theming\\ITheme' => __DIR__.'/..'.'/../lib/ITheme.php', |
|
| 33 | + 'OCA\\Theming\\IconBuilder' => __DIR__.'/..'.'/../lib/IconBuilder.php', |
|
| 34 | + 'OCA\\Theming\\ImageManager' => __DIR__.'/..'.'/../lib/ImageManager.php', |
|
| 35 | + 'OCA\\Theming\\Jobs\\MigrateBackgroundImages' => __DIR__.'/..'.'/../lib/Jobs/MigrateBackgroundImages.php', |
|
| 36 | + 'OCA\\Theming\\Jobs\\RestoreBackgroundImageColor' => __DIR__.'/..'.'/../lib/Jobs/RestoreBackgroundImageColor.php', |
|
| 37 | + 'OCA\\Theming\\Listener\\BeforePreferenceListener' => __DIR__.'/..'.'/../lib/Listener/BeforePreferenceListener.php', |
|
| 38 | + 'OCA\\Theming\\Listener\\BeforeTemplateRenderedListener' => __DIR__.'/..'.'/../lib/Listener/BeforeTemplateRenderedListener.php', |
|
| 39 | + 'OCA\\Theming\\Migration\\InitBackgroundImagesMigration' => __DIR__.'/..'.'/../lib/Migration/InitBackgroundImagesMigration.php', |
|
| 40 | + 'OCA\\Theming\\Migration\\Version2006Date20240905111627' => __DIR__.'/..'.'/../lib/Migration/Version2006Date20240905111627.php', |
|
| 41 | + 'OCA\\Theming\\ResponseDefinitions' => __DIR__.'/..'.'/../lib/ResponseDefinitions.php', |
|
| 42 | + 'OCA\\Theming\\Service\\BackgroundService' => __DIR__.'/..'.'/../lib/Service/BackgroundService.php', |
|
| 43 | + 'OCA\\Theming\\Service\\JSDataService' => __DIR__.'/..'.'/../lib/Service/JSDataService.php', |
|
| 44 | + 'OCA\\Theming\\Service\\ThemeInjectionService' => __DIR__.'/..'.'/../lib/Service/ThemeInjectionService.php', |
|
| 45 | + 'OCA\\Theming\\Service\\ThemesService' => __DIR__.'/..'.'/../lib/Service/ThemesService.php', |
|
| 46 | + 'OCA\\Theming\\Settings\\Admin' => __DIR__.'/..'.'/../lib/Settings/Admin.php', |
|
| 47 | + 'OCA\\Theming\\Settings\\AdminSection' => __DIR__.'/..'.'/../lib/Settings/AdminSection.php', |
|
| 48 | + 'OCA\\Theming\\Settings\\Personal' => __DIR__.'/..'.'/../lib/Settings/Personal.php', |
|
| 49 | + 'OCA\\Theming\\Settings\\PersonalSection' => __DIR__.'/..'.'/../lib/Settings/PersonalSection.php', |
|
| 50 | + 'OCA\\Theming\\SetupChecks\\PhpImagickModule' => __DIR__.'/..'.'/../lib/SetupChecks/PhpImagickModule.php', |
|
| 51 | + 'OCA\\Theming\\Themes\\CommonThemeTrait' => __DIR__.'/..'.'/../lib/Themes/CommonThemeTrait.php', |
|
| 52 | + 'OCA\\Theming\\Themes\\DarkHighContrastTheme' => __DIR__.'/..'.'/../lib/Themes/DarkHighContrastTheme.php', |
|
| 53 | + 'OCA\\Theming\\Themes\\DarkTheme' => __DIR__.'/..'.'/../lib/Themes/DarkTheme.php', |
|
| 54 | + 'OCA\\Theming\\Themes\\DefaultTheme' => __DIR__.'/..'.'/../lib/Themes/DefaultTheme.php', |
|
| 55 | + 'OCA\\Theming\\Themes\\DyslexiaFont' => __DIR__.'/..'.'/../lib/Themes/DyslexiaFont.php', |
|
| 56 | + 'OCA\\Theming\\Themes\\HighContrastTheme' => __DIR__.'/..'.'/../lib/Themes/HighContrastTheme.php', |
|
| 57 | + 'OCA\\Theming\\Themes\\LightTheme' => __DIR__.'/..'.'/../lib/Themes/LightTheme.php', |
|
| 58 | + 'OCA\\Theming\\ThemingDefaults' => __DIR__.'/..'.'/../lib/ThemingDefaults.php', |
|
| 59 | + 'OCA\\Theming\\Util' => __DIR__.'/..'.'/../lib/Util.php', |
|
| 60 | 60 | ); |
| 61 | 61 | |
| 62 | 62 | public static function getInitializer(ClassLoader $loader) |
| 63 | 63 | { |
| 64 | - return \Closure::bind(function () use ($loader) { |
|
| 64 | + return \Closure::bind(function() use ($loader) { |
|
| 65 | 65 | $loader->prefixLengthsPsr4 = ComposerStaticInitTheming::$prefixLengthsPsr4; |
| 66 | 66 | $loader->prefixDirsPsr4 = ComposerStaticInitTheming::$prefixDirsPsr4; |
| 67 | 67 | $loader->classMap = ComposerStaticInitTheming::$classMap; |
@@ -6,40 +6,40 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
|
| 10 | - 'OCA\\Theming\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
| 11 | - 'OCA\\Theming\\Capabilities' => $baseDir . '/../lib/Capabilities.php', |
|
| 12 | - 'OCA\\Theming\\Command\\UpdateConfig' => $baseDir . '/../lib/Command/UpdateConfig.php', |
|
| 13 | - 'OCA\\Theming\\ConfigLexicon' => $baseDir . '/../lib/ConfigLexicon.php', |
|
| 14 | - 'OCA\\Theming\\Controller\\IconController' => $baseDir . '/../lib/Controller/IconController.php', |
|
| 15 | - 'OCA\\Theming\\Controller\\ThemingController' => $baseDir . '/../lib/Controller/ThemingController.php', |
|
| 16 | - 'OCA\\Theming\\Controller\\UserThemeController' => $baseDir . '/../lib/Controller/UserThemeController.php', |
|
| 17 | - 'OCA\\Theming\\ITheme' => $baseDir . '/../lib/ITheme.php', |
|
| 18 | - 'OCA\\Theming\\IconBuilder' => $baseDir . '/../lib/IconBuilder.php', |
|
| 19 | - 'OCA\\Theming\\ImageManager' => $baseDir . '/../lib/ImageManager.php', |
|
| 20 | - 'OCA\\Theming\\Jobs\\MigrateBackgroundImages' => $baseDir . '/../lib/Jobs/MigrateBackgroundImages.php', |
|
| 21 | - 'OCA\\Theming\\Jobs\\RestoreBackgroundImageColor' => $baseDir . '/../lib/Jobs/RestoreBackgroundImageColor.php', |
|
| 22 | - 'OCA\\Theming\\Listener\\BeforePreferenceListener' => $baseDir . '/../lib/Listener/BeforePreferenceListener.php', |
|
| 23 | - 'OCA\\Theming\\Listener\\BeforeTemplateRenderedListener' => $baseDir . '/../lib/Listener/BeforeTemplateRenderedListener.php', |
|
| 24 | - 'OCA\\Theming\\Migration\\InitBackgroundImagesMigration' => $baseDir . '/../lib/Migration/InitBackgroundImagesMigration.php', |
|
| 25 | - 'OCA\\Theming\\Migration\\Version2006Date20240905111627' => $baseDir . '/../lib/Migration/Version2006Date20240905111627.php', |
|
| 26 | - 'OCA\\Theming\\ResponseDefinitions' => $baseDir . '/../lib/ResponseDefinitions.php', |
|
| 27 | - 'OCA\\Theming\\Service\\BackgroundService' => $baseDir . '/../lib/Service/BackgroundService.php', |
|
| 28 | - 'OCA\\Theming\\Service\\JSDataService' => $baseDir . '/../lib/Service/JSDataService.php', |
|
| 29 | - 'OCA\\Theming\\Service\\ThemeInjectionService' => $baseDir . '/../lib/Service/ThemeInjectionService.php', |
|
| 30 | - 'OCA\\Theming\\Service\\ThemesService' => $baseDir . '/../lib/Service/ThemesService.php', |
|
| 31 | - 'OCA\\Theming\\Settings\\Admin' => $baseDir . '/../lib/Settings/Admin.php', |
|
| 32 | - 'OCA\\Theming\\Settings\\AdminSection' => $baseDir . '/../lib/Settings/AdminSection.php', |
|
| 33 | - 'OCA\\Theming\\Settings\\Personal' => $baseDir . '/../lib/Settings/Personal.php', |
|
| 34 | - 'OCA\\Theming\\Settings\\PersonalSection' => $baseDir . '/../lib/Settings/PersonalSection.php', |
|
| 35 | - 'OCA\\Theming\\SetupChecks\\PhpImagickModule' => $baseDir . '/../lib/SetupChecks/PhpImagickModule.php', |
|
| 36 | - 'OCA\\Theming\\Themes\\CommonThemeTrait' => $baseDir . '/../lib/Themes/CommonThemeTrait.php', |
|
| 37 | - 'OCA\\Theming\\Themes\\DarkHighContrastTheme' => $baseDir . '/../lib/Themes/DarkHighContrastTheme.php', |
|
| 38 | - 'OCA\\Theming\\Themes\\DarkTheme' => $baseDir . '/../lib/Themes/DarkTheme.php', |
|
| 39 | - 'OCA\\Theming\\Themes\\DefaultTheme' => $baseDir . '/../lib/Themes/DefaultTheme.php', |
|
| 40 | - 'OCA\\Theming\\Themes\\DyslexiaFont' => $baseDir . '/../lib/Themes/DyslexiaFont.php', |
|
| 41 | - 'OCA\\Theming\\Themes\\HighContrastTheme' => $baseDir . '/../lib/Themes/HighContrastTheme.php', |
|
| 42 | - 'OCA\\Theming\\Themes\\LightTheme' => $baseDir . '/../lib/Themes/LightTheme.php', |
|
| 43 | - 'OCA\\Theming\\ThemingDefaults' => $baseDir . '/../lib/ThemingDefaults.php', |
|
| 44 | - 'OCA\\Theming\\Util' => $baseDir . '/../lib/Util.php', |
|
| 9 | + 'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php', |
|
| 10 | + 'OCA\\Theming\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
| 11 | + 'OCA\\Theming\\Capabilities' => $baseDir.'/../lib/Capabilities.php', |
|
| 12 | + 'OCA\\Theming\\Command\\UpdateConfig' => $baseDir.'/../lib/Command/UpdateConfig.php', |
|
| 13 | + 'OCA\\Theming\\ConfigLexicon' => $baseDir.'/../lib/ConfigLexicon.php', |
|
| 14 | + 'OCA\\Theming\\Controller\\IconController' => $baseDir.'/../lib/Controller/IconController.php', |
|
| 15 | + 'OCA\\Theming\\Controller\\ThemingController' => $baseDir.'/../lib/Controller/ThemingController.php', |
|
| 16 | + 'OCA\\Theming\\Controller\\UserThemeController' => $baseDir.'/../lib/Controller/UserThemeController.php', |
|
| 17 | + 'OCA\\Theming\\ITheme' => $baseDir.'/../lib/ITheme.php', |
|
| 18 | + 'OCA\\Theming\\IconBuilder' => $baseDir.'/../lib/IconBuilder.php', |
|
| 19 | + 'OCA\\Theming\\ImageManager' => $baseDir.'/../lib/ImageManager.php', |
|
| 20 | + 'OCA\\Theming\\Jobs\\MigrateBackgroundImages' => $baseDir.'/../lib/Jobs/MigrateBackgroundImages.php', |
|
| 21 | + 'OCA\\Theming\\Jobs\\RestoreBackgroundImageColor' => $baseDir.'/../lib/Jobs/RestoreBackgroundImageColor.php', |
|
| 22 | + 'OCA\\Theming\\Listener\\BeforePreferenceListener' => $baseDir.'/../lib/Listener/BeforePreferenceListener.php', |
|
| 23 | + 'OCA\\Theming\\Listener\\BeforeTemplateRenderedListener' => $baseDir.'/../lib/Listener/BeforeTemplateRenderedListener.php', |
|
| 24 | + 'OCA\\Theming\\Migration\\InitBackgroundImagesMigration' => $baseDir.'/../lib/Migration/InitBackgroundImagesMigration.php', |
|
| 25 | + 'OCA\\Theming\\Migration\\Version2006Date20240905111627' => $baseDir.'/../lib/Migration/Version2006Date20240905111627.php', |
|
| 26 | + 'OCA\\Theming\\ResponseDefinitions' => $baseDir.'/../lib/ResponseDefinitions.php', |
|
| 27 | + 'OCA\\Theming\\Service\\BackgroundService' => $baseDir.'/../lib/Service/BackgroundService.php', |
|
| 28 | + 'OCA\\Theming\\Service\\JSDataService' => $baseDir.'/../lib/Service/JSDataService.php', |
|
| 29 | + 'OCA\\Theming\\Service\\ThemeInjectionService' => $baseDir.'/../lib/Service/ThemeInjectionService.php', |
|
| 30 | + 'OCA\\Theming\\Service\\ThemesService' => $baseDir.'/../lib/Service/ThemesService.php', |
|
| 31 | + 'OCA\\Theming\\Settings\\Admin' => $baseDir.'/../lib/Settings/Admin.php', |
|
| 32 | + 'OCA\\Theming\\Settings\\AdminSection' => $baseDir.'/../lib/Settings/AdminSection.php', |
|
| 33 | + 'OCA\\Theming\\Settings\\Personal' => $baseDir.'/../lib/Settings/Personal.php', |
|
| 34 | + 'OCA\\Theming\\Settings\\PersonalSection' => $baseDir.'/../lib/Settings/PersonalSection.php', |
|
| 35 | + 'OCA\\Theming\\SetupChecks\\PhpImagickModule' => $baseDir.'/../lib/SetupChecks/PhpImagickModule.php', |
|
| 36 | + 'OCA\\Theming\\Themes\\CommonThemeTrait' => $baseDir.'/../lib/Themes/CommonThemeTrait.php', |
|
| 37 | + 'OCA\\Theming\\Themes\\DarkHighContrastTheme' => $baseDir.'/../lib/Themes/DarkHighContrastTheme.php', |
|
| 38 | + 'OCA\\Theming\\Themes\\DarkTheme' => $baseDir.'/../lib/Themes/DarkTheme.php', |
|
| 39 | + 'OCA\\Theming\\Themes\\DefaultTheme' => $baseDir.'/../lib/Themes/DefaultTheme.php', |
|
| 40 | + 'OCA\\Theming\\Themes\\DyslexiaFont' => $baseDir.'/../lib/Themes/DyslexiaFont.php', |
|
| 41 | + 'OCA\\Theming\\Themes\\HighContrastTheme' => $baseDir.'/../lib/Themes/HighContrastTheme.php', |
|
| 42 | + 'OCA\\Theming\\Themes\\LightTheme' => $baseDir.'/../lib/Themes/LightTheme.php', |
|
| 43 | + 'OCA\\Theming\\ThemingDefaults' => $baseDir.'/../lib/ThemingDefaults.php', |
|
| 44 | + 'OCA\\Theming\\Util' => $baseDir.'/../lib/Util.php', |
|
| 45 | 45 | ); |
@@ -338,8 +338,8 @@ discard block |
||
| 338 | 338 | |
| 339 | 339 | public static function invalidLegalUrlProvider(): array { |
| 340 | 340 | return [ |
| 341 | - ['example.com/legal'], # missing scheme |
|
| 342 | - ['https:///legal'], # missing host |
|
| 341 | + ['example.com/legal'], # missing scheme |
|
| 342 | + ['https:///legal'], # missing host |
|
| 343 | 343 | ]; |
| 344 | 344 | } |
| 345 | 345 | |
@@ -663,7 +663,7 @@ discard block |
||
| 663 | 663 | ->method('linkToRoute') |
| 664 | 664 | ->with('theming.Theming.getImage') |
| 665 | 665 | ->willReturn('custom-logo?v=0'); |
| 666 | - $this->assertEquals('custom-logo' . '?v=0', $this->template->getLogo()); |
|
| 666 | + $this->assertEquals('custom-logo'.'?v=0', $this->template->getLogo()); |
|
| 667 | 667 | } |
| 668 | 668 | |
| 669 | 669 | public function testGetScssVariablesCached(): void { |
@@ -803,7 +803,7 @@ discard block |
||
| 803 | 803 | } |
| 804 | 804 | |
| 805 | 805 | #[\PHPUnit\Framework\Attributes\DataProvider('dataReplaceImagePath')] |
| 806 | - public function testReplaceImagePath(string $app, string $image, string|bool $result = 'themingRoute?v=1234abcd'): void { |
|
| 806 | + public function testReplaceImagePath(string $app, string $image, string | bool $result = 'themingRoute?v=1234abcd'): void { |
|
| 807 | 807 | $this->cache->expects($this->any()) |
| 808 | 808 | ->method('get') |
| 809 | 809 | ->with('shouldReplaceIcons') |