Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2.0185 |
Changes | 0 |
1 | <?php |
||
15 | 16 | public function renderTemplate(Plates\Template $template, Plates\RenderTemplate $render = null) { |
|
16 | 16 | $inc = self::createInclude(); |
|
17 | 16 | $inc = $this->bind ? ($this->bind)($inc, $template) : $inc; |
|
18 | |||
19 | 16 | return Plates\Util\obWrap(function() use ($inc, $template) { |
|
20 | $inc($template->get('path'), $template->data); |
||
21 | 16 | }); |
|
22 | } |
||
23 | |||
31 |