@@ -185,8 +185,7 @@ |
||
| 185 | 185 | { |
| 186 | 186 | try { |
| 187 | 187 | return $this->make( $parameter->getClass()->name ); |
| 188 | - } |
|
| 189 | - catch( BindingResolutionException $e ) { |
|
| 188 | + } catch( BindingResolutionException $e ) { |
|
| 190 | 189 | if( $parameter->isOptional() ) { |
| 191 | 190 | return $parameter->getDefaultValue(); |
| 192 | 191 | } |
@@ -63,7 +63,9 @@ |
||
| 63 | 63 | public function pageTitle() |
| 64 | 64 | { |
| 65 | 65 | foreach( ['is_404', 'is_archive', 'is_home', 'is_search'] as $bool ) { |
| 66 | - if( !$bool() )continue; |
|
| 66 | + if( !$bool() ) { |
|
| 67 | + continue; |
|
| 68 | + } |
|
| 67 | 69 | $method = sprintf( 'get%sTitle', ucfirst( str_replace( 'is_', '', $bool ))); |
| 68 | 70 | return $this->$method(); |
| 69 | 71 | } |
@@ -43,8 +43,7 @@ discard block |
||
| 43 | 43 | printf( '<div class="print__r"><pre>%s</pre></div>', |
| 44 | 44 | htmlspecialchars( print_r( $value, true ), ENT_QUOTES, 'UTF-8' ) |
| 45 | 45 | ); |
| 46 | - } |
|
| 47 | - else if( $args > 1 ) { |
|
| 46 | + } else if( $args > 1 ) { |
|
| 48 | 47 | echo '<div class="print__r_group">'; |
| 49 | 48 | foreach( func_get_args() as $param ) { |
| 50 | 49 | $this->print( $param ); |
@@ -56,7 +55,9 @@ discard block |
||
| 56 | 55 | public function printFiltersFor( $hook = '' ) |
| 57 | 56 | { |
| 58 | 57 | global $wp_filter; |
| 59 | - if( empty( $hook ) || !isset( $wp_filter[$hook] ))return; |
|
| 58 | + if( empty( $hook ) || !isset( $wp_filter[$hook] )) { |
|
| 59 | + return; |
|
| 60 | + } |
|
| 60 | 61 | $this->print( $wp_filter[ $hook ] ); |
| 61 | 62 | } |
| 62 | 63 | |