Code Duplication    Length = 4-4 lines in 2 locations

lib/private/setup.php 2 locations

@@ 427-430 (lines=4) @@
424
425
		$htaccessContent = file_get_contents($setupHelper->pathToHtaccess());
426
		$content = '';
427
		if (strpos($htaccessContent, 'ErrorDocument 403') === false) {
428
			//custom 403 error page
429
			$content.= "\nErrorDocument 403 ".\OC::$WEBROOT."/core/templates/403.php";
430
		}
431
		if (strpos($htaccessContent, 'ErrorDocument 404') === false) {
432
			//custom 404 error page
433
			$content.= "\nErrorDocument 404 ".\OC::$WEBROOT."/core/templates/404.php";
@@ 431-434 (lines=4) @@
428
			//custom 403 error page
429
			$content.= "\nErrorDocument 403 ".\OC::$WEBROOT."/core/templates/403.php";
430
		}
431
		if (strpos($htaccessContent, 'ErrorDocument 404') === false) {
432
			//custom 404 error page
433
			$content.= "\nErrorDocument 404 ".\OC::$WEBROOT."/core/templates/404.php";
434
		}
435
		if ($content !== '') {
436
			//suppress errors in case we don't have permissions for it
437
			@file_put_contents($setupHelper->pathToHtaccess(), $content . "\n", FILE_APPEND);