@@ -47,7 +47,9 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | $views = $this->generatePossibleViews( $view ); |
| 49 | 49 | foreach( $views as $possibleView ) { |
| 50 | - if( !file_exists( glsr()->path( 'views/'.$possibleView.'.php' )))continue; |
|
| 50 | + if( !file_exists( glsr()->path( 'views/'.$possibleView.'.php' ))) { |
|
| 51 | + continue; |
|
| 52 | + } |
|
| 51 | 53 | return $possibleView; |
| 52 | 54 | } |
| 53 | 55 | return $view; |
@@ -84,7 +86,9 @@ discard block |
||
| 84 | 86 | */ |
| 85 | 87 | public function modifyField( Builder $instance ) |
| 86 | 88 | { |
| 87 | - if( !$this->isPublicInstance( $instance ) || empty( array_filter( $this->fields )))return; |
|
| 89 | + if( !$this->isPublicInstance( $instance ) || empty( array_filter( $this->fields ))) { |
|
| 90 | + return; |
|
| 91 | + } |
|
| 88 | 92 | call_user_func_array( [$this, 'customize'], [&$instance] ); |
| 89 | 93 | } |
| 90 | 94 | |