@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | |
255 | 255 | try { |
256 | 256 | $mime = $this->imageManager->updateImage($key, $image['tmp_name']); |
257 | - $this->themingDefaults->set($key . 'Mime', $mime); |
|
257 | + $this->themingDefaults->set($key.'Mime', $mime); |
|
258 | 258 | } catch (\Exception $e) { |
259 | 259 | return new DataResponse( |
260 | 260 | [ |
@@ -355,12 +355,12 @@ discard block |
||
355 | 355 | $csp->allowInlineStyle(); |
356 | 356 | $response->setContentSecurityPolicy($csp); |
357 | 357 | $response->cacheFor(3600); |
358 | - $response->addHeader('Content-Type', $this->config->getAppValue($this->appName, $key . 'Mime', '')); |
|
359 | - $response->addHeader('Content-Disposition', 'attachment; filename="' . $key . '"'); |
|
358 | + $response->addHeader('Content-Type', $this->config->getAppValue($this->appName, $key.'Mime', '')); |
|
359 | + $response->addHeader('Content-Disposition', 'attachment; filename="'.$key.'"'); |
|
360 | 360 | if (!$useSvg) { |
361 | 361 | $response->addHeader('Content-Type', 'image/png'); |
362 | 362 | } else { |
363 | - $response->addHeader('Content-Type', $this->config->getAppValue($this->appName, $key . 'Mime', '')); |
|
363 | + $response->addHeader('Content-Type', $this->config->getAppValue($this->appName, $key.'Mime', '')); |
|
364 | 364 | } |
365 | 365 | return $response; |
366 | 366 | } |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | |
400 | 400 | // If plain is set, the browser decides of the css priority |
401 | 401 | if ($plain) { |
402 | - $css = ":root { $variables } " . $customCss; |
|
402 | + $css = ":root { $variables } ".$customCss; |
|
403 | 403 | } else { |
404 | 404 | // If not set, we'll rely on the body class |
405 | 405 | // We need to separate @-rules from normal selectors, as they can't be nested |
@@ -453,12 +453,12 @@ discard block |
||
453 | 453 | } |
454 | 454 | |
455 | 455 | $info = $this->appManager->getAppInfo($app, false, $this->l10n->getLanguageCode()); |
456 | - $name = $info['name'] . ' - ' . $this->themingDefaults->getName(); |
|
456 | + $name = $info['name'].' - '.$this->themingDefaults->getName(); |
|
457 | 457 | $shortName = $info['name']; |
458 | 458 | if (str_contains($this->request->getRequestUri(), '/index.php/')) { |
459 | - $startUrl = $this->urlGenerator->getBaseUrl() . '/index.php/apps/' . $app . '/'; |
|
459 | + $startUrl = $this->urlGenerator->getBaseUrl().'/index.php/apps/'.$app.'/'; |
|
460 | 460 | } else { |
461 | - $startUrl = $this->urlGenerator->getBaseUrl() . '/apps/' . $app . '/'; |
|
461 | + $startUrl = $this->urlGenerator->getBaseUrl().'/apps/'.$app.'/'; |
|
462 | 462 | } |
463 | 463 | $description = $info['summary'] ?? ''; |
464 | 464 | } |
@@ -477,13 +477,13 @@ discard block |
||
477 | 477 | => [ |
478 | 478 | [ |
479 | 479 | 'src' => $this->urlGenerator->linkToRoute('theming.Icon.getTouchIcon', |
480 | - ['app' => $app]) . '?v=' . $cacheBusterValue, |
|
480 | + ['app' => $app]).'?v='.$cacheBusterValue, |
|
481 | 481 | 'type' => 'image/png', |
482 | 482 | 'sizes' => '512x512' |
483 | 483 | ], |
484 | 484 | [ |
485 | 485 | 'src' => $this->urlGenerator->linkToRoute('theming.Icon.getFavicon', |
486 | - ['app' => $app]) . '?v=' . $cacheBusterValue, |
|
486 | + ['app' => $app]).'?v='.$cacheBusterValue, |
|
487 | 487 | 'type' => 'image/svg+xml', |
488 | 488 | 'sizes' => '16x16' |
489 | 489 | ] |