@@ -72,7 +72,9 @@ |
||
| 72 | 72 | public function pageTitle() |
| 73 | 73 | { |
| 74 | 74 | foreach( ['is_404', 'is_archive', 'is_home', 'is_page', 'is_search'] as $bool ) { |
| 75 | - if( !$bool() )continue; |
|
| 75 | + if( !$bool() ) { |
|
| 76 | + continue; |
|
| 77 | + } |
|
| 76 | 78 | $method = sprintf( 'get%sTitle', ucfirst( str_replace( 'is_', '', $bool ))); |
| 77 | 79 | return $this->$method(); |
| 78 | 80 | } |
@@ -65,7 +65,9 @@ discard block |
||
| 65 | 65 | { |
| 66 | 66 | $image = $this->getImageSrc( $attachment->ID ); |
| 67 | 67 | |
| 68 | - if( !$image )return; |
|
| 68 | + if( !$image ) { |
|
| 69 | + return; |
|
| 70 | + } |
|
| 69 | 71 | |
| 70 | 72 | return sprintf( |
| 71 | 73 | '<figure data-w="%s" data-h="%s" itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">' . |
@@ -126,7 +128,9 @@ discard block |
||
| 126 | 128 | { |
| 127 | 129 | $thumbnail = wp_get_attachment_image_src( $id, 'thumbnail' ); |
| 128 | 130 | |
| 129 | - if( !$thumbnail )return; |
|
| 131 | + if( !$thumbnail ) { |
|
| 132 | + return; |
|
| 133 | + } |
|
| 130 | 134 | |
| 131 | 135 | $medium = $this->normalizeImageSrc( wp_get_attachment_image_src( $id, 'medium' ), $thumbnail ); |
| 132 | 136 | $large = $this->normalizeImageSrc( wp_get_attachment_image_src( $id, 'large' ), $medium ); |