Passed
Push — master ( 5f63ee...30b096 )
by Jean-Christophe
02:33
created

JsUtilsComponent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 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
}
22