Code Duplication    Length = 4-4 lines in 2 locations

lib/private/URLGenerator.php 2 locations

@@ 188-191 (lines=4) @@
185
			$path =  \OC::$WEBROOT . "/themes/$theme/apps/$app/img/$basename.png";
186
		} elseif (!empty($app) and file_exists(\OC::$SERVERROOT . "/themes/$theme/$app/img/$image")) {
187
			$path =  \OC::$WEBROOT . "/themes/$theme/$app/img/$image";
188
		} elseif (!empty($app) and (!file_exists(\OC::$SERVERROOT . "/themes/$theme/$app/img/$basename.svg")
189
			&& file_exists(\OC::$SERVERROOT . "/themes/$theme/$app/img/$basename.png"))) {
190
			$path =  \OC::$WEBROOT . "/themes/$theme/$app/img/$basename.png";
191
		} elseif (file_exists(\OC::$SERVERROOT . "/themes/$theme/core/img/$image")) {
192
			$path =  \OC::$WEBROOT . "/themes/$theme/core/img/$image";
193
		} elseif (!file_exists(\OC::$SERVERROOT . "/themes/$theme/core/img/$basename.svg")
194
			&& file_exists(\OC::$SERVERROOT . "/themes/$theme/core/img/$basename.png")) {
@@ 203-206 (lines=4) @@
200
			$path =  \OC_App::getAppWebPath($app) . "/img/$basename.png";
201
		} elseif (!empty($app) and file_exists(\OC::$SERVERROOT . "/$app/img/$image")) {
202
			$path =  \OC::$WEBROOT . "/$app/img/$image";
203
		} elseif (!empty($app) and (!file_exists(\OC::$SERVERROOT . "/$app/img/$basename.svg")
204
				&& file_exists(\OC::$SERVERROOT . "/$app/img/$basename.png"))) {
205
			$path =  \OC::$WEBROOT . "/$app/img/$basename.png";
206
		} elseif (file_exists(\OC::$SERVERROOT . "/core/img/$image")) {
207
			$path =  \OC::$WEBROOT . "/core/img/$image";
208
		} elseif (!file_exists(\OC::$SERVERROOT . "/core/img/$basename.svg")
209
			&& file_exists(\OC::$SERVERROOT . "/core/img/$basename.png")) {