Completed
Push — master ( 6428cf...c314a0 )
by Joas
61:40 queued 46:07
created
themes/example/defaults.php 1 patch
Indentation   +141 added lines, -141 removed lines patch added patch discarded remove patch
@@ -20,146 +20,146 @@
 block discarded – undo
20 20
 
21 21
 class OC_Theme {
22 22
 
23
-	/**
24
-	 * Returns the base URL
25
-	 * @return string URL
26
-	 */
27
-	public function getBaseUrl() {
28
-		return 'https://nextcloud.com';
29
-	}
30
-
31
-	/**
32
-	 * Returns the URL where the sync clients are listed
33
-	 * @return string URL
34
-	 */
35
-	public function getSyncClientUrl() {
36
-		return 'https://nextcloud.com/install/#install-clients';
37
-	}
38
-
39
-	/**
40
-	 * Returns the URL to the App Store for the iOS Client
41
-	 * @return string URL
42
-	 */
43
-	public function getiOSClientUrl() {
44
-		return 'https://geo.itunes.apple.com/us/app/nextcloud/id1125420102?mt=8';
45
-	}
46
-
47
-	/**
48
-	 * Returns the AppId for the App Store for the iOS Client
49
-	 * @return string AppId
50
-	 */
51
-	public function getiTunesAppId() {
52
-		return '1125420102';
53
-	}
54
-
55
-	/**
56
-	 * Returns the URL to Google Play for the Android Client
57
-	 * @return string URL
58
-	 */
59
-	public function getAndroidClientUrl() {
60
-		return 'https://play.google.com/store/apps/details?id=com.nextcloud.client';
61
-	}
62
-
63
-	/**
64
-	 * Returns the documentation URL
65
-	 * @return string URL
66
-	 */
67
-	public function getDocBaseUrl() {
68
-		return 'https://docs.nextcloud.com';
69
-	}
70
-
71
-	/**
72
-	 * Returns the title
73
-	 * @return string title
74
-	 */
75
-	public function getTitle() {
76
-		return 'Custom Cloud';
77
-	}
78
-
79
-	/**
80
-	 * Returns the short name of the software
81
-	 * @return string title
82
-	 */
83
-	public function getName() {
84
-		return 'Custom Cloud';
85
-	}
86
-
87
-	/**
88
-	 * Returns the short name of the software containing HTML strings
89
-	 * @return string title
90
-	 */
91
-	public function getHTMLName() {
92
-		return 'Custom Cloud';
93
-	}
94
-
95
-	/**
96
-	 * Returns entity (e.g. company name) - used for footer, copyright
97
-	 * @return string entity name
98
-	 */
99
-	public function getEntity() {
100
-		return 'Custom Cloud Co.';
101
-	}
102
-
103
-	/**
104
-	 * Returns slogan
105
-	 * @return string slogan
106
-	 */
107
-	public function getSlogan() {
108
-		return 'Your custom cloud, personalized for you!';
109
-	}
110
-
111
-	/**
112
-	 * Returns logo claim
113
-	 * @return string logo claim
114
-	 * @deprecated 13.0.0 not used anymore
115
-	 */
116
-	public function getLogoClaim() {
117
-		return '';
118
-	}
119
-
120
-	/**
121
-	 * Returns short version of the footer
122
-	 * @return string short footer
123
-	 */
124
-	public function getShortFooter() {
125
-		$footer = '© 2017 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
126
-			'<br/>' . $this->getSlogan();
127
-
128
-		return $footer;
129
-	}
130
-
131
-	/**
132
-	 * Returns long version of the footer
133
-	 * @return string long footer
134
-	 */
135
-	public function getLongFooter() {
136
-		$footer = '© 2017 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
137
-			'<br/>' . $this->getSlogan();
138
-
139
-		return $footer;
140
-	}
141
-
142
-	public function buildDocLinkToKey($key) {
143
-		return $this->getDocBaseUrl() . '/server/12/go.php?to=' . $key;
144
-	}
145
-
146
-
147
-	/**
148
-	 * Returns mail header color
149
-	 * @return string
150
-	 */
151
-	public function getColorPrimary() {
152
-		return '#745bca';
153
-	}
154
-
155
-	/**
156
-	 * Returns variables to overload defaults from core/css/variables.scss
157
-	 * @return array
158
-	 */
159
-	public function getScssVariables() {
160
-		return [
161
-			'color-primary' => '#745bca'
162
-		];
163
-	}
23
+    /**
24
+     * Returns the base URL
25
+     * @return string URL
26
+     */
27
+    public function getBaseUrl() {
28
+        return 'https://nextcloud.com';
29
+    }
30
+
31
+    /**
32
+     * Returns the URL where the sync clients are listed
33
+     * @return string URL
34
+     */
35
+    public function getSyncClientUrl() {
36
+        return 'https://nextcloud.com/install/#install-clients';
37
+    }
38
+
39
+    /**
40
+     * Returns the URL to the App Store for the iOS Client
41
+     * @return string URL
42
+     */
43
+    public function getiOSClientUrl() {
44
+        return 'https://geo.itunes.apple.com/us/app/nextcloud/id1125420102?mt=8';
45
+    }
46
+
47
+    /**
48
+     * Returns the AppId for the App Store for the iOS Client
49
+     * @return string AppId
50
+     */
51
+    public function getiTunesAppId() {
52
+        return '1125420102';
53
+    }
54
+
55
+    /**
56
+     * Returns the URL to Google Play for the Android Client
57
+     * @return string URL
58
+     */
59
+    public function getAndroidClientUrl() {
60
+        return 'https://play.google.com/store/apps/details?id=com.nextcloud.client';
61
+    }
62
+
63
+    /**
64
+     * Returns the documentation URL
65
+     * @return string URL
66
+     */
67
+    public function getDocBaseUrl() {
68
+        return 'https://docs.nextcloud.com';
69
+    }
70
+
71
+    /**
72
+     * Returns the title
73
+     * @return string title
74
+     */
75
+    public function getTitle() {
76
+        return 'Custom Cloud';
77
+    }
78
+
79
+    /**
80
+     * Returns the short name of the software
81
+     * @return string title
82
+     */
83
+    public function getName() {
84
+        return 'Custom Cloud';
85
+    }
86
+
87
+    /**
88
+     * Returns the short name of the software containing HTML strings
89
+     * @return string title
90
+     */
91
+    public function getHTMLName() {
92
+        return 'Custom Cloud';
93
+    }
94
+
95
+    /**
96
+     * Returns entity (e.g. company name) - used for footer, copyright
97
+     * @return string entity name
98
+     */
99
+    public function getEntity() {
100
+        return 'Custom Cloud Co.';
101
+    }
102
+
103
+    /**
104
+     * Returns slogan
105
+     * @return string slogan
106
+     */
107
+    public function getSlogan() {
108
+        return 'Your custom cloud, personalized for you!';
109
+    }
110
+
111
+    /**
112
+     * Returns logo claim
113
+     * @return string logo claim
114
+     * @deprecated 13.0.0 not used anymore
115
+     */
116
+    public function getLogoClaim() {
117
+        return '';
118
+    }
119
+
120
+    /**
121
+     * Returns short version of the footer
122
+     * @return string short footer
123
+     */
124
+    public function getShortFooter() {
125
+        $footer = '© 2017 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
126
+            '<br/>' . $this->getSlogan();
127
+
128
+        return $footer;
129
+    }
130
+
131
+    /**
132
+     * Returns long version of the footer
133
+     * @return string long footer
134
+     */
135
+    public function getLongFooter() {
136
+        $footer = '© 2017 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
137
+            '<br/>' . $this->getSlogan();
138
+
139
+        return $footer;
140
+    }
141
+
142
+    public function buildDocLinkToKey($key) {
143
+        return $this->getDocBaseUrl() . '/server/12/go.php?to=' . $key;
144
+    }
145
+
146
+
147
+    /**
148
+     * Returns mail header color
149
+     * @return string
150
+     */
151
+    public function getColorPrimary() {
152
+        return '#745bca';
153
+    }
154
+
155
+    /**
156
+     * Returns variables to overload defaults from core/css/variables.scss
157
+     * @return array
158
+     */
159
+    public function getScssVariables() {
160
+        return [
161
+            'color-primary' => '#745bca'
162
+        ];
163
+    }
164 164
 
165 165
 }
Please login to merge, or discard this patch.
lib/private/legacy/defaults.php 1 patch
Indentation   +263 added lines, -263 removed lines patch added patch discarded remove patch
@@ -35,296 +35,296 @@
 block discarded – undo
35 35
  */
36 36
 class OC_Defaults {
37 37
 
38
-	private $theme;
39
-	private $l;
38
+    private $theme;
39
+    private $l;
40 40
 
41
-	private $defaultEntity;
42
-	private $defaultName;
43
-	private $defaultTitle;
44
-	private $defaultBaseUrl;
45
-	private $defaultSyncClientUrl;
46
-	private $defaultiOSClientUrl;
47
-	private $defaultiTunesAppId;
48
-	private $defaultAndroidClientUrl;
49
-	private $defaultDocBaseUrl;
50
-	private $defaultDocVersion;
51
-	private $defaultSlogan;
52
-	private $defaultColorPrimary;
53
-	private $defaultTextColorPrimary;
41
+    private $defaultEntity;
42
+    private $defaultName;
43
+    private $defaultTitle;
44
+    private $defaultBaseUrl;
45
+    private $defaultSyncClientUrl;
46
+    private $defaultiOSClientUrl;
47
+    private $defaultiTunesAppId;
48
+    private $defaultAndroidClientUrl;
49
+    private $defaultDocBaseUrl;
50
+    private $defaultDocVersion;
51
+    private $defaultSlogan;
52
+    private $defaultColorPrimary;
53
+    private $defaultTextColorPrimary;
54 54
 
55
-	public function __construct() {
56
-		$this->l = \OC::$server->getL10N('lib');
55
+    public function __construct() {
56
+        $this->l = \OC::$server->getL10N('lib');
57 57
 
58
-		$this->defaultEntity = 'Nextcloud'; /* e.g. company name, used for footers and copyright notices */
59
-		$this->defaultName = 'Nextcloud'; /* short name, used when referring to the software */
60
-		$this->defaultTitle = 'Nextcloud'; /* can be a longer name, for titles */
61
-		$this->defaultBaseUrl = 'https://nextcloud.com';
62
-		$this->defaultSyncClientUrl = 'https://nextcloud.com/install/#install-clients';
63
-		$this->defaultiOSClientUrl = 'https://geo.itunes.apple.com/us/app/nextcloud/id1125420102?mt=8';
64
-		$this->defaultiTunesAppId = '1125420102';
65
-		$this->defaultAndroidClientUrl = 'https://play.google.com/store/apps/details?id=com.nextcloud.client';
66
-		$this->defaultDocBaseUrl = 'https://docs.nextcloud.com';
67
-		$this->defaultDocVersion = '14'; // used to generate doc links
68
-		$this->defaultSlogan = $this->l->t('a safe home for all your data');
69
-		$this->defaultColorPrimary = '#0082c9';
70
-		$this->defaultTextColorPrimary = '#ffffff';
58
+        $this->defaultEntity = 'Nextcloud'; /* e.g. company name, used for footers and copyright notices */
59
+        $this->defaultName = 'Nextcloud'; /* short name, used when referring to the software */
60
+        $this->defaultTitle = 'Nextcloud'; /* can be a longer name, for titles */
61
+        $this->defaultBaseUrl = 'https://nextcloud.com';
62
+        $this->defaultSyncClientUrl = 'https://nextcloud.com/install/#install-clients';
63
+        $this->defaultiOSClientUrl = 'https://geo.itunes.apple.com/us/app/nextcloud/id1125420102?mt=8';
64
+        $this->defaultiTunesAppId = '1125420102';
65
+        $this->defaultAndroidClientUrl = 'https://play.google.com/store/apps/details?id=com.nextcloud.client';
66
+        $this->defaultDocBaseUrl = 'https://docs.nextcloud.com';
67
+        $this->defaultDocVersion = '14'; // used to generate doc links
68
+        $this->defaultSlogan = $this->l->t('a safe home for all your data');
69
+        $this->defaultColorPrimary = '#0082c9';
70
+        $this->defaultTextColorPrimary = '#ffffff';
71 71
 
72
-		$themePath = OC::$SERVERROOT . '/themes/' . OC_Util::getTheme() . '/defaults.php';
73
-		if (file_exists($themePath)) {
74
-			// prevent defaults.php from printing output
75
-			ob_start();
76
-			require_once $themePath;
77
-			ob_end_clean();
78
-			if (class_exists('OC_Theme')) {
79
-				$this->theme = new OC_Theme();
80
-			}
81
-		}
82
-	}
72
+        $themePath = OC::$SERVERROOT . '/themes/' . OC_Util::getTheme() . '/defaults.php';
73
+        if (file_exists($themePath)) {
74
+            // prevent defaults.php from printing output
75
+            ob_start();
76
+            require_once $themePath;
77
+            ob_end_clean();
78
+            if (class_exists('OC_Theme')) {
79
+                $this->theme = new OC_Theme();
80
+            }
81
+        }
82
+    }
83 83
 
84
-	/**
85
-	 * @param string $method
86
-	 */
87
-	private function themeExist($method) {
88
-		if (isset($this->theme) && method_exists($this->theme, $method)) {
89
-			return true;
90
-		}
91
-		return false;
92
-	}
84
+    /**
85
+     * @param string $method
86
+     */
87
+    private function themeExist($method) {
88
+        if (isset($this->theme) && method_exists($this->theme, $method)) {
89
+            return true;
90
+        }
91
+        return false;
92
+    }
93 93
 
94
-	/**
95
-	 * Returns the base URL
96
-	 * @return string URL
97
-	 */
98
-	public function getBaseUrl() {
99
-		if ($this->themeExist('getBaseUrl')) {
100
-			return $this->theme->getBaseUrl();
101
-		} else {
102
-			return $this->defaultBaseUrl;
103
-		}
104
-	}
94
+    /**
95
+     * Returns the base URL
96
+     * @return string URL
97
+     */
98
+    public function getBaseUrl() {
99
+        if ($this->themeExist('getBaseUrl')) {
100
+            return $this->theme->getBaseUrl();
101
+        } else {
102
+            return $this->defaultBaseUrl;
103
+        }
104
+    }
105 105
 
106
-	/**
107
-	 * Returns the URL where the sync clients are listed
108
-	 * @return string URL
109
-	 */
110
-	public function getSyncClientUrl() {
111
-		if ($this->themeExist('getSyncClientUrl')) {
112
-			return $this->theme->getSyncClientUrl();
113
-		} else {
114
-			return $this->defaultSyncClientUrl;
115
-		}
116
-	}
106
+    /**
107
+     * Returns the URL where the sync clients are listed
108
+     * @return string URL
109
+     */
110
+    public function getSyncClientUrl() {
111
+        if ($this->themeExist('getSyncClientUrl')) {
112
+            return $this->theme->getSyncClientUrl();
113
+        } else {
114
+            return $this->defaultSyncClientUrl;
115
+        }
116
+    }
117 117
 
118
-	/**
119
-	 * Returns the URL to the App Store for the iOS Client
120
-	 * @return string URL
121
-	 */
122
-	public function getiOSClientUrl() {
123
-		if ($this->themeExist('getiOSClientUrl')) {
124
-			return $this->theme->getiOSClientUrl();
125
-		} else {
126
-			return $this->defaultiOSClientUrl;
127
-		}
128
-	}
118
+    /**
119
+     * Returns the URL to the App Store for the iOS Client
120
+     * @return string URL
121
+     */
122
+    public function getiOSClientUrl() {
123
+        if ($this->themeExist('getiOSClientUrl')) {
124
+            return $this->theme->getiOSClientUrl();
125
+        } else {
126
+            return $this->defaultiOSClientUrl;
127
+        }
128
+    }
129 129
 
130
-	/**
131
-	 * Returns the AppId for the App Store for the iOS Client
132
-	 * @return string AppId
133
-	 */
134
-	public function getiTunesAppId() {
135
-		if ($this->themeExist('getiTunesAppId')) {
136
-			return $this->theme->getiTunesAppId();
137
-		} else {
138
-			return $this->defaultiTunesAppId;
139
-		}
140
-	}
130
+    /**
131
+     * Returns the AppId for the App Store for the iOS Client
132
+     * @return string AppId
133
+     */
134
+    public function getiTunesAppId() {
135
+        if ($this->themeExist('getiTunesAppId')) {
136
+            return $this->theme->getiTunesAppId();
137
+        } else {
138
+            return $this->defaultiTunesAppId;
139
+        }
140
+    }
141 141
 
142
-	/**
143
-	 * Returns the URL to Google Play for the Android Client
144
-	 * @return string URL
145
-	 */
146
-	public function getAndroidClientUrl() {
147
-		if ($this->themeExist('getAndroidClientUrl')) {
148
-			return $this->theme->getAndroidClientUrl();
149
-		} else {
150
-			return $this->defaultAndroidClientUrl;
151
-		}
152
-	}
142
+    /**
143
+     * Returns the URL to Google Play for the Android Client
144
+     * @return string URL
145
+     */
146
+    public function getAndroidClientUrl() {
147
+        if ($this->themeExist('getAndroidClientUrl')) {
148
+            return $this->theme->getAndroidClientUrl();
149
+        } else {
150
+            return $this->defaultAndroidClientUrl;
151
+        }
152
+    }
153 153
 
154
-	/**
155
-	 * Returns the documentation URL
156
-	 * @return string URL
157
-	 */
158
-	public function getDocBaseUrl() {
159
-		if ($this->themeExist('getDocBaseUrl')) {
160
-			return $this->theme->getDocBaseUrl();
161
-		} else {
162
-			return $this->defaultDocBaseUrl;
163
-		}
164
-	}
154
+    /**
155
+     * Returns the documentation URL
156
+     * @return string URL
157
+     */
158
+    public function getDocBaseUrl() {
159
+        if ($this->themeExist('getDocBaseUrl')) {
160
+            return $this->theme->getDocBaseUrl();
161
+        } else {
162
+            return $this->defaultDocBaseUrl;
163
+        }
164
+    }
165 165
 
166
-	/**
167
-	 * Returns the title
168
-	 * @return string title
169
-	 */
170
-	public function getTitle() {
171
-		if ($this->themeExist('getTitle')) {
172
-			return $this->theme->getTitle();
173
-		} else {
174
-			return $this->defaultTitle;
175
-		}
176
-	}
166
+    /**
167
+     * Returns the title
168
+     * @return string title
169
+     */
170
+    public function getTitle() {
171
+        if ($this->themeExist('getTitle')) {
172
+            return $this->theme->getTitle();
173
+        } else {
174
+            return $this->defaultTitle;
175
+        }
176
+    }
177 177
 
178
-	/**
179
-	 * Returns the short name of the software
180
-	 * @return string title
181
-	 */
182
-	public function getName() {
183
-		if ($this->themeExist('getName')) {
184
-			return $this->theme->getName();
185
-		} else {
186
-			return $this->defaultName;
187
-		}
188
-	}
178
+    /**
179
+     * Returns the short name of the software
180
+     * @return string title
181
+     */
182
+    public function getName() {
183
+        if ($this->themeExist('getName')) {
184
+            return $this->theme->getName();
185
+        } else {
186
+            return $this->defaultName;
187
+        }
188
+    }
189 189
 
190
-	/**
191
-	 * Returns the short name of the software containing HTML strings
192
-	 * @return string title
193
-	 */
194
-	public function getHTMLName() {
195
-		if ($this->themeExist('getHTMLName')) {
196
-			return $this->theme->getHTMLName();
197
-		} else {
198
-			return $this->defaultName;
199
-		}
200
-	}
190
+    /**
191
+     * Returns the short name of the software containing HTML strings
192
+     * @return string title
193
+     */
194
+    public function getHTMLName() {
195
+        if ($this->themeExist('getHTMLName')) {
196
+            return $this->theme->getHTMLName();
197
+        } else {
198
+            return $this->defaultName;
199
+        }
200
+    }
201 201
 
202
-	/**
203
-	 * Returns entity (e.g. company name) - used for footer, copyright
204
-	 * @return string entity name
205
-	 */
206
-	public function getEntity() {
207
-		if ($this->themeExist('getEntity')) {
208
-			return $this->theme->getEntity();
209
-		} else {
210
-			return $this->defaultEntity;
211
-		}
212
-	}
202
+    /**
203
+     * Returns entity (e.g. company name) - used for footer, copyright
204
+     * @return string entity name
205
+     */
206
+    public function getEntity() {
207
+        if ($this->themeExist('getEntity')) {
208
+            return $this->theme->getEntity();
209
+        } else {
210
+            return $this->defaultEntity;
211
+        }
212
+    }
213 213
 
214
-	/**
215
-	 * Returns slogan
216
-	 * @return string slogan
217
-	 */
218
-	public function getSlogan() {
219
-		if ($this->themeExist('getSlogan')) {
220
-			return $this->theme->getSlogan();
221
-		} else {
222
-			return $this->defaultSlogan;
223
-		}
224
-	}
214
+    /**
215
+     * Returns slogan
216
+     * @return string slogan
217
+     */
218
+    public function getSlogan() {
219
+        if ($this->themeExist('getSlogan')) {
220
+            return $this->theme->getSlogan();
221
+        } else {
222
+            return $this->defaultSlogan;
223
+        }
224
+    }
225 225
 
226
-	/**
227
-	 * Returns logo claim
228
-	 * @return string logo claim
229
-	 * @deprecated 13.0.0
230
-	 */
231
-	public function getLogoClaim() {
232
-		return '';
233
-	}
226
+    /**
227
+     * Returns logo claim
228
+     * @return string logo claim
229
+     * @deprecated 13.0.0
230
+     */
231
+    public function getLogoClaim() {
232
+        return '';
233
+    }
234 234
 
235
-	/**
236
-	 * Returns short version of the footer
237
-	 * @return string short footer
238
-	 */
239
-	public function getShortFooter() {
240
-		if ($this->themeExist('getShortFooter')) {
241
-			$footer = $this->theme->getShortFooter();
242
-		} else {
243
-			$footer = '<a href="'. $this->getBaseUrl() . '" target="_blank"' .
244
-				' rel="noreferrer noopener">' .$this->getEntity() . '</a>'.
245
-				' – ' . $this->getSlogan();
246
-		}
235
+    /**
236
+     * Returns short version of the footer
237
+     * @return string short footer
238
+     */
239
+    public function getShortFooter() {
240
+        if ($this->themeExist('getShortFooter')) {
241
+            $footer = $this->theme->getShortFooter();
242
+        } else {
243
+            $footer = '<a href="'. $this->getBaseUrl() . '" target="_blank"' .
244
+                ' rel="noreferrer noopener">' .$this->getEntity() . '</a>'.
245
+                ' – ' . $this->getSlogan();
246
+        }
247 247
 
248
-		return $footer;
249
-	}
248
+        return $footer;
249
+    }
250 250
 
251
-	/**
252
-	 * Returns long version of the footer
253
-	 * @return string long footer
254
-	 */
255
-	public function getLongFooter() {
256
-		if ($this->themeExist('getLongFooter')) {
257
-			$footer = $this->theme->getLongFooter();
258
-		} else {
259
-			$footer = $this->getShortFooter();
260
-		}
251
+    /**
252
+     * Returns long version of the footer
253
+     * @return string long footer
254
+     */
255
+    public function getLongFooter() {
256
+        if ($this->themeExist('getLongFooter')) {
257
+            $footer = $this->theme->getLongFooter();
258
+        } else {
259
+            $footer = $this->getShortFooter();
260
+        }
261 261
 
262
-		return $footer;
263
-	}
262
+        return $footer;
263
+    }
264 264
 
265
-	/**
266
-	 * @param string $key
267
-	 * @return string URL to doc with key
268
-	 */
269
-	public function buildDocLinkToKey($key) {
270
-		if ($this->themeExist('buildDocLinkToKey')) {
271
-			return $this->theme->buildDocLinkToKey($key);
272
-		}
273
-		return $this->getDocBaseUrl() . '/server/' . $this->defaultDocVersion . '/go.php?to=' . $key;
274
-	}
265
+    /**
266
+     * @param string $key
267
+     * @return string URL to doc with key
268
+     */
269
+    public function buildDocLinkToKey($key) {
270
+        if ($this->themeExist('buildDocLinkToKey')) {
271
+            return $this->theme->buildDocLinkToKey($key);
272
+        }
273
+        return $this->getDocBaseUrl() . '/server/' . $this->defaultDocVersion . '/go.php?to=' . $key;
274
+    }
275 275
 
276
-	/**
277
-	 * Returns primary color
278
-	 * @return string
279
-	 */
280
-	public function getColorPrimary() {
276
+    /**
277
+     * Returns primary color
278
+     * @return string
279
+     */
280
+    public function getColorPrimary() {
281 281
 
282
-		if ($this->themeExist('getColorPrimary')) {
283
-			return $this->theme->getColorPrimary();
284
-		}
285
-		if ($this->themeExist('getMailHeaderColor')) {
286
-			return $this->theme->getMailHeaderColor();
287
-		}
288
-		return $this->defaultColorPrimary;
289
-	}
282
+        if ($this->themeExist('getColorPrimary')) {
283
+            return $this->theme->getColorPrimary();
284
+        }
285
+        if ($this->themeExist('getMailHeaderColor')) {
286
+            return $this->theme->getMailHeaderColor();
287
+        }
288
+        return $this->defaultColorPrimary;
289
+    }
290 290
 
291
-	/**
292
-	 * @return array scss variables to overwrite
293
-	 */
294
-	public function getScssVariables() {
295
-		if($this->themeExist('getScssVariables')) {
296
-			return $this->theme->getScssVariables();
297
-		}
298
-		return [];
299
-	}
291
+    /**
292
+     * @return array scss variables to overwrite
293
+     */
294
+    public function getScssVariables() {
295
+        if($this->themeExist('getScssVariables')) {
296
+            return $this->theme->getScssVariables();
297
+        }
298
+        return [];
299
+    }
300 300
 
301
-	public function shouldReplaceIcons() {
302
-		return false;
303
-	}
301
+    public function shouldReplaceIcons() {
302
+        return false;
303
+    }
304 304
 
305
-	/**
306
-	 * Themed logo url
307
-	 *
308
-	 * @param bool $useSvg Whether to point to the SVG image or a fallback
309
-	 * @return string
310
-	 */
311
-	public function getLogo($useSvg = true) {
312
-		if ($this->themeExist('getLogo')) {
313
-			return $this->theme->getLogo($useSvg);
314
-		}
305
+    /**
306
+     * Themed logo url
307
+     *
308
+     * @param bool $useSvg Whether to point to the SVG image or a fallback
309
+     * @return string
310
+     */
311
+    public function getLogo($useSvg = true) {
312
+        if ($this->themeExist('getLogo')) {
313
+            return $this->theme->getLogo($useSvg);
314
+        }
315 315
 
316
-		if($useSvg) {
317
-			$logo = \OC::$server->getURLGenerator()->imagePath('core', 'logo.svg');
318
-		} else {
319
-			$logo = \OC::$server->getURLGenerator()->imagePath('core', 'logo.png');
320
-		}
321
-	    return $logo . '?v=' . hash('sha1', implode('.', \OCP\Util::getVersion()));
322
-	}
316
+        if($useSvg) {
317
+            $logo = \OC::$server->getURLGenerator()->imagePath('core', 'logo.svg');
318
+        } else {
319
+            $logo = \OC::$server->getURLGenerator()->imagePath('core', 'logo.png');
320
+        }
321
+        return $logo . '?v=' . hash('sha1', implode('.', \OCP\Util::getVersion()));
322
+    }
323 323
 
324
-	public function getTextColorPrimary() {
325
-		if ($this->themeExist('getTextColorPrimary')) {
326
-			return $this->theme->getTextColorPrimary();
327
-		}
328
-		return $this->defaultTextColorPrimary;
329
-	}
324
+    public function getTextColorPrimary() {
325
+        if ($this->themeExist('getTextColorPrimary')) {
326
+            return $this->theme->getTextColorPrimary();
327
+        }
328
+        return $this->defaultTextColorPrimary;
329
+    }
330 330
 }
Please login to merge, or discard this patch.