Code Duplication    Length = 4-4 lines in 2 locations

lib/private/URLGenerator.php 2 locations

@@ 190-193 (lines=4) @@
187
			$path =  \OC::$WEBROOT . "/themes/$theme/$app/img/$basename.png";
188
		} elseif (file_exists(\OC::$SERVERROOT . "/themes/$theme/core/img/$image")) {
189
			$path =  \OC::$WEBROOT . "/themes/$theme/core/img/$image";
190
		} elseif (!file_exists(\OC::$SERVERROOT . "/themes/$theme/core/img/$basename.svg")
191
			&& file_exists(\OC::$SERVERROOT . "/themes/$theme/core/img/$basename.png")) {
192
			$path =  \OC::$WEBROOT . "/themes/$theme/core/img/$basename.png";
193
		} elseif($themingEnabled && $themingImagePath) {
194
			$path = $themingImagePath;
195
		} elseif ($appPath && file_exists($appPath . "/img/$image")) {
196
			$path =  \OC_App::getAppWebPath($app) . "/img/$image";
@@ 207-210 (lines=4) @@
204
			$path =  \OC::$WEBROOT . "/$app/img/$basename.png";
205
		} elseif (file_exists(\OC::$SERVERROOT . "/core/img/$image")) {
206
			$path =  \OC::$WEBROOT . "/core/img/$image";
207
		} elseif (!file_exists(\OC::$SERVERROOT . "/core/img/$basename.svg")
208
			&& file_exists(\OC::$SERVERROOT . "/core/img/$basename.png")) {
209
			$path =  \OC::$WEBROOT . "/themes/$theme/core/img/$basename.png";
210
		}
211
212
		if($path !== '') {
213
			$cache->set($cacheKey, $path);