| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function render(string $view, array $vars = []): string |
||
| 41 | {
|
||
| 42 | $contentView = $this->getContentView($view); |
||
| 43 | |||
| 44 | $vars = array_merge($this->vars, $vars); |
||
| 45 | |||
| 46 | $keys = array_keys($vars); |
||
| 47 | $keys = array_map(function($item) {
|
||
| 48 | return "{{". $item ."}}";
|
||
| 49 | }, $keys); |
||
| 50 | |||
| 51 | return str_replace($keys, array_values($vars), $contentView); |
||
| 52 | } |
||
| 65 | } |