Code Duplication    Length = 8-8 lines in 2 locations

apps/theming/lib/ThemingDefaults.php 2 locations

@@ 127-134 (lines=8) @@
124
	 *
125
	 * @return string
126
	 */
127
	public function getLogo() {
128
		$logo = $this->config->getAppValue('theming', 'logoMime');
129
		if(!$logo || !$this->rootFolder->nodeExists('themedinstancelogo')) {
130
			return $this->urlGenerator->imagePath('core','logo.svg');
131
		} else {
132
			return $this->urlGenerator->linkToRoute('theming.Theming.getLogo');
133
		}
134
	}
135
	/**
136
	 * Themed background image url
137
	 *
@@ 140-147 (lines=8) @@
137
	 *
138
	 * @return string
139
	 */
140
	public function getBackground() {
141
		$backgroundLogo = $this->config->getAppValue('theming', 'backgroundMime');
142
		if(!$backgroundLogo || !$this->rootFolder->nodeExists('themedbackgroundlogo')) {
143
			return $this->urlGenerator->imagePath('core','background.jpg');
144
		} else {
145
			return $this->urlGenerator->linkToRoute('theming.Theming.getLoginBackground');
146
		}
147
	}
148
	/**
149
	 * Increases the cache buster key
150
	 */