Conditions | 4 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
39 | public function getParams() |
||
40 | { |
||
41 | $res = []; |
||
42 | if ($this->_params instanceof Closure) { |
||
43 | $res = call_user_func($this->_params, $this); |
||
44 | } else { |
||
45 | foreach ($this->_params as $k => $v) { |
||
46 | $res[$k] = $v instanceof Closure ? call_user_func($v, $this, $this->getModel()) : $v; |
||
47 | } |
||
48 | } |
||
49 | return array_merge($res, $this->prepareData($res)); |
||
50 | } |
||
51 | |||
76 |