Completed
Push — master ( 6256b4...921a36 )
by Angus
04:40
created

MY_Config::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php defined('BASEPATH') OR exit('No direct script access allowed');
2
3
class MY_Config extends CI_Config {
4 119
	public function __construct() {
5 119
		parent::__construct();
6 119
	}
7
8
	/**
9
	 * Set a config file item by index
10
	 *
11
	 * @param	string	$item	Config item key
12
	 * @param	string	$value	Config item value
13
	 * @param	string	$index	Config item index
14
	 * @return	void
15
	 */
16
	public function set_item_by_index($item, $value, $index) {
17
		$this->config[$index][$item] = $value;
18
	}
19
}
20