Code Duplication    Length = 4-4 lines in 2 locations

lib/private/URLGenerator.php 2 locations

@@ 203-206 (lines=4) @@
200
			$path =  \OC::$WEBROOT . "/themes/$theme/$app/img/$basename.png";
201
		} elseif (file_exists(\OC::$SERVERROOT . "/themes/$theme/core/img/$image")) {
202
			$path =  \OC::$WEBROOT . "/themes/$theme/core/img/$image";
203
		} elseif (!file_exists(\OC::$SERVERROOT . "/themes/$theme/core/img/$basename.svg")
204
			&& file_exists(\OC::$SERVERROOT . "/themes/$theme/core/img/$basename.png")) {
205
			$path =  \OC::$WEBROOT . "/themes/$theme/core/img/$basename.png";
206
		} elseif($themingEnabled && $themingImagePath) {
207
			$path = $themingImagePath;
208
		} elseif ($appPath && file_exists($appPath . "/img/$image")) {
209
			$path =  \OC_App::getAppWebPath($app) . "/img/$image";
@@ 220-223 (lines=4) @@
217
			$path =  \OC::$WEBROOT . "/$app/img/$basename.png";
218
		} elseif (file_exists(\OC::$SERVERROOT . "/core/img/$image")) {
219
			$path =  \OC::$WEBROOT . "/core/img/$image";
220
		} elseif (!file_exists(\OC::$SERVERROOT . "/core/img/$basename.svg")
221
			&& file_exists(\OC::$SERVERROOT . "/core/img/$basename.png")) {
222
			$path =  \OC::$WEBROOT . "/themes/$theme/core/img/$basename.png";
223
		}
224
225
		if($path !== '') {
226
			$cache->set($cacheKey, $path);