| Conditions | 3 |
| Paths | 4 |
| Total Lines | 20 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | static public function markup_render(array $args, $engine, $template) |
||
| 39 | { |
||
| 40 | $thisArg = $args['select']; |
||
| 41 | unset($args['select']); |
||
| 42 | |||
| 43 | if (is_array($thisArg)) |
||
| 44 | { |
||
| 45 | $thisArg = new \ArrayObject($thisArg); |
||
| 46 | } |
||
| 47 | |||
| 48 | $renderer = Render\get_renderer(); |
||
| 49 | |||
| 50 | $html = $renderer->render($thisArg, $args + [ |
||
| 51 | |||
| 52 | 'locals' => $engine->context->to_array() |
||
| 53 | |||
| 54 | ]); |
||
| 55 | |||
| 56 | return $template ? $engine($template, $html) : $html; |
||
| 57 | } |
||
| 58 | } |
||
| 59 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.