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

MY_Config   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
dl 0
loc 17
ccs 3
cts 6
cp 0.5
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A set_item_by_index() 0 3 1
A __construct() 0 3 1
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