Code Duplication    Length = 8-11 lines in 2 locations

modules/tiled-gallery/tiled-gallery/tiled-gallery-shape.php 2 locations

@@ 58-68 (lines=11) @@
55
	}
56
}
57
58
class Jetpack_Tiled_Gallery_Four extends Jetpack_Tiled_Gallery_Shape {
59
	public $shape = array( 1, 1, 1, 1 );
60
61
	public function is_possible() {
62
		return $this->is_not_as_previous() &&
63
			(
64
				( $this->sum_ratios( 4 ) < 3.5 && $this->images_left > 5 ) ||
65
				( $this->sum_ratios( 4 ) < 7 && $this->images_left == 4 )
66
			);
67
	}
68
}
69
70
class Jetpack_Tiled_Gallery_Five extends Jetpack_Tiled_Gallery_Shape {
71
	public $shape = array( 1, 1, 1, 1, 1 );
@@ 70-77 (lines=8) @@
67
	}
68
}
69
70
class Jetpack_Tiled_Gallery_Five extends Jetpack_Tiled_Gallery_Shape {
71
	public $shape = array( 1, 1, 1, 1, 1 );
72
73
	public function is_possible() {
74
		return $this->is_wide_theme() && $this->is_not_as_previous() && $this->sum_ratios( 5 ) < 5 &&
75
			( $this->images_left == 5 || ( $this->images_left != 10 && $this->images_left > 6 ) );
76
	}
77
}
78
79
class Jetpack_Tiled_Gallery_Two_One extends Jetpack_Tiled_Gallery_Shape {
80
	public $shape = array( 2, 1 );