Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
15 | 16 | public function renderTemplate(Plates\Template $template, Plates\RenderTemplate $rt = null) { |
|
16 | 16 | if (!isset($this->mocks[$template->name])) { |
|
17 | 4 | throw new Plates\Exception\RenderTemplateException('Mock include does not exist for name: ' . $template->name); |
|
18 | } |
||
19 | |||
20 | 12 | return $this->mocks[$template->name]($template); |
|
21 | } |
||
22 | } |
||
23 |