@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | */ |
187 | 187 | public function updateLogo() { |
188 | 188 | $backgroundColor = $this->request->getParam('backgroundColor', false); |
189 | - if($backgroundColor) { |
|
189 | + if ($backgroundColor) { |
|
190 | 190 | $this->themingDefaults->set('backgroundMime', 'backgroundColor'); |
191 | 191 | return new DataResponse( |
192 | 192 | [ |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | // reprocess server scss for preview |
282 | 282 | $cssCached = $this->scssCacher->process(\OC::$SERVERROOT, '/core/css/server.scss', 'core'); |
283 | 283 | |
284 | - if($setting === 'logoMime') { |
|
284 | + if ($setting === 'logoMime') { |
|
285 | 285 | try { |
286 | 286 | $file = $this->appData->getFolder('images')->getFile('logo'); |
287 | 287 | $file->delete(); |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | } catch (NotPermittedException $e) { |
290 | 290 | } |
291 | 291 | } |
292 | - if($setting === 'backgroundMime') { |
|
292 | + if ($setting === 'backgroundMime') { |
|
293 | 293 | try { |
294 | 294 | $file = $this->appData->getFolder('images')->getFile('background'); |
295 | 295 | $file->delete(); |
@@ -372,8 +372,8 @@ discard block |
||
372 | 372 | * We cannot rely on automatic caching done by \OC_Util::addStyle, |
373 | 373 | * since we need to add the cacheBuster value to the url |
374 | 374 | */ |
375 | - $cssCached = $this->scssCacher->process(\OC::$SERVERROOT, $appPath . '/css/theming.scss', 'theming'); |
|
376 | - if(!$cssCached) { |
|
375 | + $cssCached = $this->scssCacher->process(\OC::$SERVERROOT, $appPath.'/css/theming.scss', 'theming'); |
|
376 | + if (!$cssCached) { |
|
377 | 377 | return new NotFoundResponse(); |
378 | 378 | } |
379 | 379 | |
@@ -402,12 +402,12 @@ discard block |
||
402 | 402 | $cacheBusterValue = $this->config->getAppValue('theming', 'cachebuster', '0'); |
403 | 403 | $responseJS = '(function() { |
404 | 404 | OCA.Theming = { |
405 | - name: ' . json_encode($this->themingDefaults->getName()) . ', |
|
406 | - url: ' . json_encode($this->themingDefaults->getBaseUrl()) . ', |
|
407 | - slogan: ' . json_encode($this->themingDefaults->getSlogan()) . ', |
|
408 | - color: ' . json_encode($this->themingDefaults->getColorPrimary()) . ', |
|
409 | - inverted: ' . json_encode($this->util->invertTextColor($this->themingDefaults->getColorPrimary())) . ', |
|
410 | - cacheBuster: ' . json_encode($cacheBusterValue) . ' |
|
405 | + name: ' . json_encode($this->themingDefaults->getName()).', |
|
406 | + url: ' . json_encode($this->themingDefaults->getBaseUrl()).', |
|
407 | + slogan: ' . json_encode($this->themingDefaults->getSlogan()).', |
|
408 | + color: ' . json_encode($this->themingDefaults->getColorPrimary()).', |
|
409 | + inverted: ' . json_encode($this->util->invertTextColor($this->themingDefaults->getColorPrimary())).', |
|
410 | + cacheBuster: ' . json_encode($cacheBusterValue).' |
|
411 | 411 | }; |
412 | 412 | })();'; |
413 | 413 | $response = new DataDownloadResponse($responseJS, 'javascript', 'text/javascript'); |