Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | 9 | public function newInstance( |
|
31 | $helpers = null, |
||
32 | 9 | $view_map = [], |
|
33 | 9 | $view_paths = [], |
|
34 | 9 | $layout_map = [], |
|
35 | $layout_paths = [], |
||
36 | 9 | ) { |
|
|
|||
37 | 9 | if (! $helpers) { |
|
38 | 9 | $helpers = new HelperRegistry; |
|
39 | } |
||
40 | 9 | ||
41 | return new View( |
||
42 | new TemplateRegistry($view_map, $view_paths), |
||
48 |