Code Duplication    Length = 12-15 lines in 2 locations

application/tests/Bootstrap.php 2 locations

@@ 247-258 (lines=12) @@
244
	// The path to the "application" directory
245
	if (is_dir($application_folder))
246
	{
247
		if (($_temp = realpath($application_folder)) !== FALSE)
248
		{
249
			$application_folder = $_temp;
250
		}
251
		else
252
		{
253
			$application_folder = strtr(
254
				rtrim($application_folder, '/\\'),
255
				'/\\',
256
				DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR
257
			);
258
		}
259
	}
260
	elseif (is_dir(BASEPATH.$application_folder.DIRECTORY_SEPARATOR))
261
	{
@@ 282-296 (lines=15) @@
279
	{
280
		$view_folder = APPPATH.'views';
281
	}
282
	elseif (is_dir($view_folder))
283
	{
284
		if (($_temp = realpath($view_folder)) !== FALSE)
285
		{
286
			$view_folder = $_temp;
287
		}
288
		else
289
		{
290
			$view_folder = strtr(
291
				rtrim($view_folder, '/\\'),
292
				'/\\',
293
				DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR
294
			);
295
		}
296
	}
297
	elseif (is_dir(APPPATH.$view_folder.DIRECTORY_SEPARATOR))
298
	{
299
		$view_folder = APPPATH.strtr(