@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | public function get( $attachment ) |
27 | 27 | { |
28 | 28 | $attachment = $this->normalize( $attachment ); |
29 | - if( $attachment && $thumbnail = wp_get_attachment_image_src( $attachment, 'thumbnail' )) { |
|
29 | + if( $attachment && $thumbnail = wp_get_attachment_image_src( $attachment, 'thumbnail' ) ) { |
|
30 | 30 | $medium = $this->normalizeSrc( wp_get_attachment_image_src( $attachment, 'medium' ), $thumbnail ); |
31 | 31 | $large = $this->normalizeSrc( wp_get_attachment_image_src( $attachment, 'large' ), $medium ); |
32 | 32 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | protected function normalize( $attachmentId ) |
55 | 55 | { |
56 | - if( !filter_var( $attachmentId, FILTER_VALIDATE_INT )) { |
|
56 | + if( !filter_var( $attachmentId, FILTER_VALIDATE_INT ) ) { |
|
57 | 57 | $attachmentId = $this->postmeta->get( $attachmentId ); |
58 | 58 | } |
59 | 59 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | protected function normalizeSrc( array $image, $fallback = false ) |
73 | 73 | { |
74 | - if( is_array( $fallback ) && count( array_diff( $image, $fallback )) < 2 ) { |
|
74 | + if( is_array( $fallback ) && count( array_diff( $image, $fallback ) ) < 2 ) { |
|
75 | 75 | $image = $fallback; |
76 | 76 | } |
77 | 77 | $image = array_pad( $image, 3, '' ); |