| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function render( $view, array $data = [] ) |
||
| 40 | { |
||
| 41 | $file = apply_filters( 'pollux/views/file', |
||
| 42 | $this->app->path( sprintf( 'views/%s.php', str_replace( '.php', '', $view ))), |
||
| 43 | $view, |
||
| 44 | $data |
||
| 45 | ); |
||
| 46 | if( file_exists( $file )) { |
||
| 47 | extract( $data ); |
||
| 48 | return include $file; |
||
| 49 | } |
||
| 50 | } |
||
| 51 | |||
| 68 |