Conditions | 3 |
Paths | 4 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
35 | public function blaze($object, $action, $absolute = false) |
||
36 | { |
||
37 | $compObjects = []; |
||
38 | |||
39 | if (is_array($object)) { |
||
40 | $compObjects = $object; |
||
41 | $object = array_shift($compObjects); |
||
42 | } |
||
43 | |||
44 | if ($absolute) { |
||
45 | return $this->blaze->getUrl($object, $action, $compObjects); |
||
46 | } else { |
||
47 | return $this->blaze->getPath($object, $action, $compObjects); |
||
48 | } |
||
49 | } |
||
50 | } |
||
51 |