| Conditions | 5 | 
| Paths | 10 | 
| Total Lines | 17 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 15 |     public function renderTemplate(Plates\Template $template, Plates\RenderTemplate $render = null) { | 
            ||
| 16 | $inc = self::createInclude();  | 
            ||
| 17 | $inc = $this->bind ? ($this->bind)($inc, $template) : $inc;  | 
            ||
| 18 | |||
| 19 | $cur_level = ob_get_level();  | 
            ||
| 20 |         try { | 
            ||
| 21 |             return $inc($template->get('path'), $template->data); | 
            ||
| 22 |         } catch (\Exception $e) {} | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 23 |           catch (\Throwable $e) {} | 
            ||
| 24 | |||
| 25 | // clean the ob stack  | 
            ||
| 26 |         while (ob_get_level() > $cur_level) { | 
            ||
| 27 | ob_end_clean();  | 
            ||
| 28 | }  | 
            ||
| 29 | |||
| 30 | throw $e;  | 
            ||
| 31 | }  | 
            ||
| 32 | |||
| 42 |