Code Duplication    Length = 8-17 lines in 2 locations

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

@@ 1106-1122 (lines=17) @@
1103
			$filepath = $path.'libraries/'.$subdir.$class.'.php';
1104
1105
			// Safety: Was the class already loaded by a previous call?
1106
			if (class_exists($class, FALSE))
1107
			{
1108
				// Before we deem this to be a duplicate request, let's see
1109
				// if a custom object name is being supplied. If so, we'll
1110
				// return a new instance of the object
1111
				if ($object_name !== NULL)
1112
				{
1113
					$CI =& get_instance();
1114
					if ( ! isset($CI->$object_name))
1115
					{
1116
						return $this->_ci_init_library($class, '', $params, $object_name);
1117
					}
1118
				}
1119
1120
//				log_message('debug', $class.' class already loaded. Second attempt ignored.');
1121
//				return;
1122
			}
1123
			// Does the file exist? No? Bummer...
1124
			if ( ! file_exists($filepath))
1125
			{
@@ 1174-1181 (lines=8) @@
1171
			// Before we deem this to be a duplicate request, let's see
1172
			// if a custom object name is being supplied. If so, we'll
1173
			// return a new instance of the object
1174
			if ($object_name !== NULL)
1175
			{
1176
				$CI =& get_instance();
1177
				if ( ! isset($CI->$object_name))
1178
				{
1179
					return $this->_ci_init_library($library_name, $prefix, $params, $object_name);
1180
				}
1181
			}
1182
1183
//			log_message('debug', $library_name.' class already loaded. Second attempt ignored.');
1184
//			return;