Completed
Pull Request — master (#4617)
by Julius
12:20
created
apps/theming/lib/Controller/ThemingController.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	 */
186 186
 	public function updateLogo() {
187 187
 		$backgroundColor = $this->request->getParam('backgroundColor', false);
188
-		if($backgroundColor) {
188
+		if ($backgroundColor) {
189 189
 			$this->themingDefaults->set('backgroundMime', 'backgroundColor');
190 190
 			return new DataResponse(
191 191
 				[
@@ -353,8 +353,8 @@  discard block
 block discarded – undo
353 353
 		 * We cannot rely on automatic caching done by \OC_Util::addStyle,
354 354
 		 * since we need to add the cacheBuster value to the url
355 355
 		 */
356
-		$cssCached = $this->scssCacher->process(\OC::$SERVERROOT, $appPath . '/css/theming.scss', 'theming');
357
-		if(!$cssCached) {
356
+		$cssCached = $this->scssCacher->process(\OC::$SERVERROOT, $appPath.'/css/theming.scss', 'theming');
357
+		if (!$cssCached) {
358 358
 			return new NotFoundResponse();
359 359
 		}
360 360
 
@@ -383,12 +383,12 @@  discard block
 block discarded – undo
383 383
 		$cacheBusterValue = $this->config->getAppValue('theming', 'cachebuster', '0');
384 384
 		$responseJS = '(function() {
385 385
 	OCA.Theming = {
386
-		name: ' . json_encode($this->themingDefaults->getName()) . ',
387
-		url: ' . json_encode($this->themingDefaults->getBaseUrl()) . ',
388
-		slogan: ' . json_encode($this->themingDefaults->getSlogan()) . ',
389
-		color: ' . json_encode($this->themingDefaults->getColorPrimary()) . ',
390
-		inverted: ' . json_encode($this->util->invertTextColor($this->themingDefaults->getColorPrimary())) . ',
391
-		cacheBuster: ' . json_encode($cacheBusterValue) . '
386
+		name: ' . json_encode($this->themingDefaults->getName()).',
387
+		url: ' . json_encode($this->themingDefaults->getBaseUrl()).',
388
+		slogan: ' . json_encode($this->themingDefaults->getSlogan()).',
389
+		color: ' . json_encode($this->themingDefaults->getColorPrimary()).',
390
+		inverted: ' . json_encode($this->util->invertTextColor($this->themingDefaults->getColorPrimary())).',
391
+		cacheBuster: ' . json_encode($cacheBusterValue).'
392 392
 	};
393 393
 })();';
394 394
 		$response = new DataDownloadResponse($responseJS, 'javascript', 'text/javascript');
Please login to merge, or discard this patch.