Completed
Pull Request — master (#9503)
by Julius
25:54 queued 08:23
created
apps/theming/lib/Controller/ThemingController.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -353,8 +353,8 @@  discard block
 block discarded – undo
353 353
 		$expires->add(new \DateInterval('PT24H'));
354 354
 		$response->addHeader('Expires', $expires->format(\DateTime::RFC2822));
355 355
 		$response->addHeader('Pragma', 'cache');
356
-		$response->addHeader('Content-Type', $this->config->getAppValue($this->appName, $key . 'Mime', ''));
357
-		$response->addHeader('Content-Disposition', 'attachment; filename="' . $key . '"');
356
+		$response->addHeader('Content-Type', $this->config->getAppValue($this->appName, $key.'Mime', ''));
357
+		$response->addHeader('Content-Disposition', 'attachment; filename="'.$key.'"');
358 358
 		return $response;
359 359
 	}
360 360
 
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
 		 * since we need to add the cacheBuster value to the url
376 376
 		 */
377 377
 		$cssCached = $this->scssCacher->process($appPath, 'css/theming.scss', 'theming');
378
-		if(!$cssCached) {
378
+		if (!$cssCached) {
379 379
 			return new NotFoundResponse();
380 380
 		}
381 381
 
@@ -404,12 +404,12 @@  discard block
 block discarded – undo
404 404
 		$cacheBusterValue = $this->config->getAppValue('theming', 'cachebuster', '0');
405 405
 		$responseJS = '(function() {
406 406
 	OCA.Theming = {
407
-		name: ' . json_encode($this->themingDefaults->getName()) . ',
408
-		url: ' . json_encode($this->themingDefaults->getBaseUrl()) . ',
409
-		slogan: ' . json_encode($this->themingDefaults->getSlogan()) . ',
410
-		color: ' . json_encode($this->themingDefaults->getColorPrimary()) . ',
411
-		inverted: ' . json_encode($this->util->invertTextColor($this->themingDefaults->getColorPrimary())) . ',
412
-		cacheBuster: ' . json_encode($cacheBusterValue) . '
407
+		name: ' . json_encode($this->themingDefaults->getName()).',
408
+		url: ' . json_encode($this->themingDefaults->getBaseUrl()).',
409
+		slogan: ' . json_encode($this->themingDefaults->getSlogan()).',
410
+		color: ' . json_encode($this->themingDefaults->getColorPrimary()).',
411
+		inverted: ' . json_encode($this->util->invertTextColor($this->themingDefaults->getColorPrimary())).',
412
+		cacheBuster: ' . json_encode($cacheBusterValue).'
413 413
 	};
414 414
 })();';
415 415
 		$response = new DataDownloadResponse($responseJS, 'javascript', 'text/javascript');
@@ -434,13 +434,13 @@  discard block
 block discarded – undo
434 434
 				[
435 435
 					[
436 436
 						'src' => $this->urlGenerator->linkToRoute('theming.Icon.getTouchIcon',
437
-								['app' => $app]) . '?v=' . $cacheBusterValue,
437
+								['app' => $app]).'?v='.$cacheBusterValue,
438 438
 						'type'=> 'image/png',
439 439
 						'sizes'=> '128x128'
440 440
 					],
441 441
 					[
442 442
 						'src' => $this->urlGenerator->linkToRoute('theming.Icon.getFavicon',
443
-								['app' => $app]) . '?v=' . $cacheBusterValue,
443
+								['app' => $app]).'?v='.$cacheBusterValue,
444 444
 						'type' => 'image/svg+xml',
445 445
 						'sizes' => '16x16'
446 446
 					]
Please login to merge, or discard this patch.