Passed
Push — master ( f61779...efbe97 )
by John
31:43 queued 16:46
created
apps/theming/lib/Themes/DefaultTheme.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 		$colorPrimaryElement = $this->util->elementColor($this->primaryColor);
94 94
 		$colorPrimaryElementLight = $this->util->mix($colorPrimaryElement, $colorMainBackground, -80);
95 95
 
96
-		$hasCustomLogoHeader = $this->imageManager->hasImage('logo') ||  $this->imageManager->hasImage('logoheader');
96
+		$hasCustomLogoHeader = $this->imageManager->hasImage('logo') || $this->imageManager->hasImage('logoheader');
97 97
 		$hasCustomPrimaryColour = !empty($this->config->getAppValue('theming', 'color'));
98 98
 
99 99
 		$variables = [
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 			'--background-invert-if-dark' => 'no',
200 200
 			'--background-invert-if-bright' => 'invert(100%)',
201 201
 
202
-			'--image-main-background' => "url('" . $this->urlGenerator->imagePath('core', 'app-background.jpg') . "')",
202
+			'--image-main-background' => "url('".$this->urlGenerator->imagePath('core', 'app-background.jpg')."')",
203 203
 		];
204 204
 
205 205
 		$backgroundDeleted = $this->config->getAppValue('theming', 'backgroundMime', '') === 'backgroundColor';
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 		}
211 211
 
212 212
 		// Register image variables only if custom-defined
213
-		foreach(['logo', 'logoheader', 'favicon', 'background'] as $image) {
213
+		foreach (['logo', 'logoheader', 'favicon', 'background'] as $image) {
214 214
 			if ($this->imageManager->hasImage($image)) {
215 215
 				$imageUrl = $this->imageManager->getImageUrl($image);
216 216
 				if ($image === 'background') {
@@ -219,9 +219,9 @@  discard block
 block discarded – undo
219 219
 						continue;
220 220
 					}
221 221
 					$variables['--image-background-size'] = 'cover';
222
-					$variables['--image-main-background'] = "url('" . $imageUrl . "')";
222
+					$variables['--image-main-background'] = "url('".$imageUrl."')";
223 223
 				}
224
-				$variables["--image-$image"] = "url('" . $imageUrl . "')";
224
+				$variables["--image-$image"] = "url('".$imageUrl."')";
225 225
 			}
226 226
 		}
227 227
 
Please login to merge, or discard this patch.