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