@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | |
| 254 | 254 | try { |
| 255 | 255 | $mime = $this->imageManager->updateImage($key, $image['tmp_name']); |
| 256 | - $this->themingDefaults->set($key . 'Mime', $mime); |
|
| 256 | + $this->themingDefaults->set($key.'Mime', $mime); |
|
| 257 | 257 | } catch (\Exception $e) { |
| 258 | 258 | return new DataResponse( |
| 259 | 259 | [ |
@@ -354,12 +354,12 @@ discard block |
||
| 354 | 354 | $csp->allowInlineStyle(); |
| 355 | 355 | $response->setContentSecurityPolicy($csp); |
| 356 | 356 | $response->cacheFor(3600); |
| 357 | - $response->addHeader('Content-Type', $this->config->getAppValue($this->appName, $key . 'Mime', '')); |
|
| 358 | - $response->addHeader('Content-Disposition', 'attachment; filename="' . $key . '"'); |
|
| 357 | + $response->addHeader('Content-Type', $this->config->getAppValue($this->appName, $key.'Mime', '')); |
|
| 358 | + $response->addHeader('Content-Disposition', 'attachment; filename="'.$key.'"'); |
|
| 359 | 359 | if (!$useSvg) { |
| 360 | 360 | $response->addHeader('Content-Type', 'image/png'); |
| 361 | 361 | } else { |
| 362 | - $response->addHeader('Content-Type', $this->config->getAppValue($this->appName, $key . 'Mime', '')); |
|
| 362 | + $response->addHeader('Content-Type', $this->config->getAppValue($this->appName, $key.'Mime', '')); |
|
| 363 | 363 | } |
| 364 | 364 | return $response; |
| 365 | 365 | } |
@@ -398,7 +398,7 @@ discard block |
||
| 398 | 398 | |
| 399 | 399 | // If plain is set, the browser decides of the css priority |
| 400 | 400 | if ($plain) { |
| 401 | - $css = ":root { $variables } " . $customCss; |
|
| 401 | + $css = ":root { $variables } ".$customCss; |
|
| 402 | 402 | } else { |
| 403 | 403 | // If not set, we'll rely on the body class |
| 404 | 404 | $css = "[data-theme-$themeId] { $variables $customCss }"; |
@@ -442,12 +442,12 @@ discard block |
||
| 442 | 442 | } |
| 443 | 443 | |
| 444 | 444 | $info = $this->appManager->getAppInfo($app, false, $this->l10n->getLanguageCode()); |
| 445 | - $name = $info['name'] . ' - ' . $this->themingDefaults->getName(); |
|
| 445 | + $name = $info['name'].' - '.$this->themingDefaults->getName(); |
|
| 446 | 446 | $shortName = $info['name']; |
| 447 | 447 | if (str_contains($this->request->getRequestUri(), '/index.php/')) { |
| 448 | - $startUrl = $this->urlGenerator->getBaseUrl() . '/index.php/apps/' . $app . '/'; |
|
| 448 | + $startUrl = $this->urlGenerator->getBaseUrl().'/index.php/apps/'.$app.'/'; |
|
| 449 | 449 | } else { |
| 450 | - $startUrl = $this->urlGenerator->getBaseUrl() . '/apps/' . $app . '/'; |
|
| 450 | + $startUrl = $this->urlGenerator->getBaseUrl().'/apps/'.$app.'/'; |
|
| 451 | 451 | } |
| 452 | 452 | $description = $info['summary'] ?? ''; |
| 453 | 453 | } |
@@ -466,13 +466,13 @@ discard block |
||
| 466 | 466 | [ |
| 467 | 467 | [ |
| 468 | 468 | 'src' => $this->urlGenerator->linkToRoute('theming.Icon.getTouchIcon', |
| 469 | - ['app' => $app]) . '?v=' . $cacheBusterValue, |
|
| 469 | + ['app' => $app]).'?v='.$cacheBusterValue, |
|
| 470 | 470 | 'type' => 'image/png', |
| 471 | 471 | 'sizes' => '512x512' |
| 472 | 472 | ], |
| 473 | 473 | [ |
| 474 | 474 | 'src' => $this->urlGenerator->linkToRoute('theming.Icon.getFavicon', |
| 475 | - ['app' => $app]) . '?v=' . $cacheBusterValue, |
|
| 475 | + ['app' => $app]).'?v='.$cacheBusterValue, |
|
| 476 | 476 | 'type' => 'image/svg+xml', |
| 477 | 477 | 'sizes' => '16x16' |
| 478 | 478 | ] |