Code Duplication    Length = 8-8 lines in 3 locations

web_interface/astpp/system/core/CodeIgniter.php 1 location

@@ 60-67 (lines=8) @@
57
 *  Load the framework constants
58
 * ------------------------------------------------------
59
 */
60
	if (defined('ENVIRONMENT') AND file_exists(APPPATH.'config/'.ENVIRONMENT.'/constants.php'))
61
	{
62
		require(APPPATH.'config/'.ENVIRONMENT.'/constants.php');
63
	} else
64
	{
65
		require(APPPATH.'config/constants.php');
66
	}
67
68
/*
69
 * ------------------------------------------------------
70
 *  Define a custom error handler so we can log PHP errors

web_interface/astpp/system/core/Loader.php 1 location

@@ 1111-1118 (lines=8) @@
1108
	 */
1109
	private function _ci_autoloader()
1110
	{
1111
		if (defined('ENVIRONMENT') AND file_exists(APPPATH.'config/'.ENVIRONMENT.'/autoload.php'))
1112
		{
1113
			include(APPPATH.'config/'.ENVIRONMENT.'/autoload.php');
1114
		} else
1115
		{
1116
			include(APPPATH.'config/autoload.php');
1117
		}
1118
1119
		if ( ! isset($autoload))
1120
		{
1121
			return FALSE;

web_interface/astpp/system/core/Output.php 1 location

@@ 99-106 (lines=8) @@
96
		$this->_zlib_oc = @ini_get('zlib.output_compression');
97
98
		// Get mime types for later
99
		if (defined('ENVIRONMENT') AND file_exists(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))
100
		{
101
			include APPPATH.'config/'.ENVIRONMENT.'/mimes.php';
102
		}
103
		else
104
		{
105
			include APPPATH.'config/mimes.php';
106
		}
107
108
109
		$this->mime_types = $mimes;