Code Duplication    Length = 3-3 lines in 3 locations

src/wordlift/widgets/class-srcset-util.php 3 locations

@@ 20-22 (lines=3) @@
17
		$small  = get_the_post_thumbnail_url( $post_id, 'small' );
18
		$medium = get_the_post_thumbnail_url( $post_id, 'medium' );
19
		$large  = get_the_post_thumbnail_url( $post_id, 'large' );
20
		if ( $small && $width = self::get_image_width( $post_id, 'small' ) ) {
21
			$srcset[] = $small . ' ' . $width . 'w';
22
		}
23
		if ( $medium && $width = self::get_image_width( $post_id, 'medium' ) ) {
24
			$srcset[] = $medium . ' ' . $width . 'w';
25
		}
@@ 23-25 (lines=3) @@
20
		if ( $small && $width = self::get_image_width( $post_id, 'small' ) ) {
21
			$srcset[] = $small . ' ' . $width . 'w';
22
		}
23
		if ( $medium && $width = self::get_image_width( $post_id, 'medium' ) ) {
24
			$srcset[] = $medium . ' ' . $width . 'w';
25
		}
26
27
		if ( $large && $width = self::get_image_width( $post_id, 'large' ) ) {
28
			$srcset[] = $large . ' ' . $width . 'w';
@@ 27-29 (lines=3) @@
24
			$srcset[] = $medium . ' ' . $width . 'w';
25
		}
26
27
		if ( $large && $width = self::get_image_width( $post_id, 'large' ) ) {
28
			$srcset[] = $large . ' ' . $width . 'w';
29
		}
30
31
		$srcset_string = join( ",", $srcset );
32