Code Duplication    Length = 8-17 lines in 2 locations

application/tests/_ci_phpunit_test/replacing/core/Loader.php 2 locations

@@ 1067-1083 (lines=17) @@
1064
			$filepath = $path.'libraries/'.$subdir.$class.'.php';
1065
1066
			// Safety: Was the class already loaded by a previous call?
1067
			if (class_exists($class, FALSE))
1068
			{
1069
				// Before we deem this to be a duplicate request, let's see
1070
				// if a custom object name is being supplied. If so, we'll
1071
				// return a new instance of the object
1072
				if ($object_name !== NULL)
1073
				{
1074
					$CI =& get_instance();
1075
					if ( ! isset($CI->$object_name))
1076
					{
1077
						return $this->_ci_init_library($class, '', $params, $object_name);
1078
					}
1079
				}
1080
1081
//				log_message('debug', $class.' class already loaded. Second attempt ignored.');
1082
//				return;
1083
			}
1084
			// Does the file exist? No? Bummer...
1085
			if ( ! file_exists($filepath))
1086
			{
@@ 1135-1142 (lines=8) @@
1132
			// Before we deem this to be a duplicate request, let's see
1133
			// if a custom object name is being supplied. If so, we'll
1134
			// return a new instance of the object
1135
			if ($object_name !== NULL)
1136
			{
1137
				$CI =& get_instance();
1138
				if ( ! isset($CI->$object_name))
1139
				{
1140
					return $this->_ci_init_library($library_name, $prefix, $params, $object_name);
1141
				}
1142
			}
1143
1144
//			log_message('debug', $library_name.' class already loaded. Second attempt ignored.');
1145
//			return;