Code Duplication    Length = 11-11 lines in 3 locations

application/tests/_ci_phpunit_test/replacing/core/Output.php 3 locations

@@ 589-599 (lines=11) @@
586
			.$CI->config->item('index_page')
587
			.$CI->uri->uri_string();
588
589
		if (($cache_query_string = $CI->config->item('cache_query_string')) && ! empty($_SERVER['QUERY_STRING']))
590
		{
591
			if (is_array($cache_query_string))
592
			{
593
				$uri .= '?'.http_build_query(array_intersect_key($_GET, array_flip($cache_query_string)));
594
			}
595
			else
596
			{
597
				$uri .= '?'.$_SERVER['QUERY_STRING'];
598
			}
599
		}
600
601
		$cache_path .= md5($uri);
602
@@ 683-693 (lines=11) @@
680
		// Build the file path. The file name is an MD5 hash of the full URI
681
		$uri = $CFG->item('base_url').$CFG->item('index_page').$URI->uri_string;
682
683
		if (($cache_query_string = $CFG->item('cache_query_string')) && ! empty($_SERVER['QUERY_STRING']))
684
		{
685
			if (is_array($cache_query_string))
686
			{
687
				$uri .= '?'.http_build_query(array_intersect_key($_GET, array_flip($cache_query_string)));
688
			}
689
			else
690
			{
691
				$uri .= '?'.$_SERVER['QUERY_STRING'];
692
			}
693
		}
694
695
		$filepath = $cache_path.md5($uri);
696
@@ 771-781 (lines=11) @@
768
		{
769
			$uri = $CI->uri->uri_string();
770
771
			if (($cache_query_string = $CI->config->item('cache_query_string')) && ! empty($_SERVER['QUERY_STRING']))
772
			{
773
				if (is_array($cache_query_string))
774
				{
775
					$uri .= '?'.http_build_query(array_intersect_key($_GET, array_flip($cache_query_string)));
776
				}
777
				else
778
				{
779
					$uri .= '?'.$_SERVER['QUERY_STRING'];
780
				}
781
			}
782
		}
783
784
		$cache_path .= md5($CI->config->item('base_url').$CI->config->item('index_page').ltrim($uri, '/'));