Conditions | 4 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 4.128 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | 13 | public function getResultLoader() |
|
42 | { |
||
43 | 13 | if ($this->result instanceof \Twig_LoaderInterface) { |
|
44 | 1 | return $this->result; |
|
45 | } |
||
46 | |||
47 | if (is_array($this->result) && $this->result['loader'] instanceof \Twig_LoaderInterface) { |
||
48 | 1 | return $this->result['loader']; |
|
49 | } |
||
50 | |||
51 | return $this->getLoader(); |
||
52 | } |
||
53 | } |
||
54 |