Code Duplication    Length = 12-13 lines in 2 locations

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

@@ 129-141 (lines=13) @@
126
	}
127
}
128
129
class Jetpack_Tiled_Gallery_Symmetric_Row extends Jetpack_Tiled_Gallery_Shape {
130
	public $shape = array( 1, 2, 1 );
131
132
	public function is_possible() {
133
		return $this->is_not_as_previous( 5 ) &&
134
			$this->images_left > 3 &&
135
			$this->images_left != 5 &&
136
			$this->image_is_portrait( $this->images[0] ) &&
137
			$this->image_is_landscape( $this->images[1] ) &&
138
			$this->image_is_landscape( $this->images[2] ) &&
139
			$this->image_is_portrait( $this->images[3] );
140
	}
141
}
142
class Jetpack_Tiled_Gallery_Reverse_Symmetric_Row extends Jetpack_Tiled_Gallery_Shape {
143
	public $shape = array( 2, 1, 2 );
144
@@ 142-153 (lines=12) @@
139
			$this->image_is_portrait( $this->images[3] );
140
	}
141
}
142
class Jetpack_Tiled_Gallery_Reverse_Symmetric_Row extends Jetpack_Tiled_Gallery_Shape {
143
	public $shape = array( 2, 1, 2 );
144
145
	public function is_possible() {
146
		return $this->is_not_as_previous( 5 ) && $this->images_left > 15 &&
147
			$this->image_is_landscape( $this->images[0] ) &&
148
			$this->image_is_landscape( $this->images[1] ) &&
149
			$this->image_is_portrait( $this->images[2] ) &&
150
			$this->image_is_landscape( $this->images[3] ) &&
151
			$this->image_is_landscape( $this->images[4] );
152
	}
153
}
154
155
class Jetpack_Tiled_Gallery_Long_Symmetric_Row extends Jetpack_Tiled_Gallery_Shape {
156
	public $shape = array( 3, 1, 3 );