@@ -4,8 +4,7 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | use GeminiLabs\Castor\Helpers\Utility; |
| 6 | 6 | |
| 7 | -class Development |
|
| 8 | -{ |
|
| 7 | +class Development { |
|
| 9 | 8 | public $templatePaths = []; |
| 10 | 9 | |
| 11 | 10 | protected $utility; |
@@ -45,13 +44,17 @@ discard block |
||
| 45 | 44 | public function printFiltersFor( $hook = '' ) |
| 46 | 45 | { |
| 47 | 46 | global $wp_filter; |
| 48 | - if( empty( $hook ) || !isset( $wp_filter[$hook] ))return; |
|
| 47 | + if( empty( $hook ) || !isset( $wp_filter[$hook] )) { |
|
| 48 | + return; |
|
| 49 | + } |
|
| 49 | 50 | $this->printF( $wp_filter[ $hook ] ); |
| 50 | 51 | } |
| 51 | 52 | |
| 52 | 53 | public function printTemplatePaths() |
| 53 | 54 | { |
| 54 | - if( !$this->isDev() )return; |
|
| 55 | + if( !$this->isDev() ) { |
|
| 56 | + return; |
|
| 57 | + } |
|
| 55 | 58 | $templates = array_map( function( $key, $value ) { |
| 56 | 59 | return sprintf( '[%s] => %s', $key, $value ); |
| 57 | 60 | }, array_keys( $this->templatePaths ), $this->templatePaths ); |