Completed
Push — master ( fc9cad...73aa8e )
by Jean-Christophe
07:56 queued 03:31
created

JsUtilsComponent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 7 2
1
<?php
2
3
namespace App\Controller\Component;
4
5
use Ajax\php\cakephp\_JsUtils;
6
use Cake\Controller\Component;
7
use Ajax\Semantic;
8
9
class JsUtilsComponent extends Component {
10
	/**
11
	 * @var Ajax\php\cakephp\_JsUtils
12
	 */
13
	public $jquery;
14
	public function initialize(array $config){
15
		\extract($config);
16
		$this->jquery=new _JsUtils();
17
		if(isset($semantic)){
18
			$this->jquery->semantic(new Semantic());
19
		}
20
	}
21
}