Code Duplication    Length = 4-4 lines in 2 locations

lib/private/URLGenerator.php 2 locations

@@ 185-188 (lines=4) @@
182
			$path =  \OC::$WEBROOT . "/themes/$theme/apps/$app/img/$basename.png";
183
		} elseif (!empty($app) and file_exists(\OC::$SERVERROOT . "/themes/$theme/$app/img/$image")) {
184
			$path =  \OC::$WEBROOT . "/themes/$theme/$app/img/$image";
185
		} elseif (!empty($app) and (!file_exists(\OC::$SERVERROOT . "/themes/$theme/$app/img/$basename.svg")
186
			&& file_exists(\OC::$SERVERROOT . "/themes/$theme/$app/img/$basename.png"))) {
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")) {
@@ 202-205 (lines=4) @@
199
			$path =  \OC_App::getAppWebPath($app) . "/img/$basename.png";
200
		} elseif (!empty($app) and file_exists(\OC::$SERVERROOT . "/$app/img/$image")) {
201
			$path =  \OC::$WEBROOT . "/$app/img/$image";
202
		} elseif (!empty($app) and (!file_exists(\OC::$SERVERROOT . "/$app/img/$basename.svg")
203
				&& file_exists(\OC::$SERVERROOT . "/$app/img/$basename.png"))) {
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")) {