| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 4 | public function render( $file, $context ) { |
|
| 29 | 4 | $__view = $file; |
|
| 30 | 4 | $__context = array_merge( |
|
| 31 | 4 | ['global' => $this->global_context], |
|
| 32 | 4 | $context |
|
| 33 | ); |
||
| 34 | 4 | $renderer = function() use ( $__view, $__context ) { |
|
| 35 | 4 | ob_start(); |
|
| 36 | 4 | extract( $__context ); |
|
| 37 | 4 | include( $__view ); |
|
| 38 | 4 | return ob_get_clean(); |
|
| 39 | 4 | }; |
|
| 40 | return $renderer(); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |