Completed
Pull Request — master (#4918)
by Julius
15:22
created
apps/theming/lib/Capabilities.php 2 patches
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -34,45 +34,45 @@
 block discarded – undo
34 34
  */
35 35
 class Capabilities implements ICapability {
36 36
 
37
-	/** @var ThemingDefaults */
38
-	protected $theming;
37
+    /** @var ThemingDefaults */
38
+    protected $theming;
39 39
 
40
-	/** @var IURLGenerator */
41
-	protected $url;
40
+    /** @var IURLGenerator */
41
+    protected $url;
42 42
 
43
-	/** @var IConfig */
44
-	protected $config;
43
+    /** @var IConfig */
44
+    protected $config;
45 45
 
46
-	/**
47
-	 * @param ThemingDefaults $theming
48
-	 * @param IURLGenerator $url
49
-	 * @param IConfig $config
50
-	 */
51
-	public function __construct(ThemingDefaults $theming, IURLGenerator $url, IConfig $config) {
52
-		$this->theming = $theming;
53
-		$this->url = $url;
54
-		$this->config = $config;
55
-	}
46
+    /**
47
+     * @param ThemingDefaults $theming
48
+     * @param IURLGenerator $url
49
+     * @param IConfig $config
50
+     */
51
+    public function __construct(ThemingDefaults $theming, IURLGenerator $url, IConfig $config) {
52
+        $this->theming = $theming;
53
+        $this->url = $url;
54
+        $this->config = $config;
55
+    }
56 56
 
57
-	/**
58
-	 * Return this classes capabilities
59
-	 *
60
-	 * @return array
61
-	 */
62
-	public function getCapabilities() {
63
-		$backgroundLogo = $this->config->getAppValue('theming', 'backgroundMime', false);
57
+    /**
58
+     * Return this classes capabilities
59
+     *
60
+     * @return array
61
+     */
62
+    public function getCapabilities() {
63
+        $backgroundLogo = $this->config->getAppValue('theming', 'backgroundMime', false);
64 64
 
65
-		return [
66
-			'theming' => [
67
-				'name' => $this->theming->getName(),
68
-				'url' => $this->theming->getBaseUrl(),
69
-				'slogan' => $this->theming->getSlogan(),
70
-				'color' => $this->theming->getColorPrimary(),
71
-				'logo' => $this->url->getAbsoluteURL($this->theming->getLogo()),
72
-				'background' => $backgroundLogo === 'backgroundColor' ?
73
-					$this->theming->getColorPrimary() :
74
-					$this->url->getAbsoluteURL($this->theming->getBackground()),
75
-			],
76
-		];
77
-	}
65
+        return [
66
+            'theming' => [
67
+                'name' => $this->theming->getName(),
68
+                'url' => $this->theming->getBaseUrl(),
69
+                'slogan' => $this->theming->getSlogan(),
70
+                'color' => $this->theming->getColorPrimary(),
71
+                'logo' => $this->url->getAbsoluteURL($this->theming->getLogo()),
72
+                'background' => $backgroundLogo === 'backgroundColor' ?
73
+                    $this->theming->getColorPrimary() :
74
+                    $this->url->getAbsoluteURL($this->theming->getBackground()),
75
+            ],
76
+        ];
77
+    }
78 78
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,7 @@
 block discarded – undo
70 70
 				'color' => $this->theming->getColorPrimary(),
71 71
 				'logo' => $this->url->getAbsoluteURL($this->theming->getLogo()),
72 72
 				'background' => $backgroundLogo === 'backgroundColor' ?
73
-					$this->theming->getColorPrimary() :
74
-					$this->url->getAbsoluteURL($this->theming->getBackground()),
73
+					$this->theming->getColorPrimary() : $this->url->getAbsoluteURL($this->theming->getBackground()),
75 74
 			],
76 75
 		];
77 76
 	}
Please login to merge, or discard this patch.