Code Duplication    Length = 4-4 lines in 2 locations

core/Toolset/Key_Toolset.php 2 locations

@@ 176-179 (lines=4) @@
173
	public function get_storage_key_getter_patterns( $is_simple_root_field, $full_hierarchy ) {
174
		$patterns = array();
175
176
		if ( $is_simple_root_field ) {
177
			$key = $this->get_storage_key_for_simple_root_field( $full_hierarchy[ count( $full_hierarchy ) - 1 ] );
178
			$patterns[ $key ] = static::PATTERN_COMPARISON_EQUAL;
179
		}
180
		
181
		$parents = $full_hierarchy;
182
		$first_parent = array_shift( $parents );
@@ 211-214 (lines=4) @@
208
		$full_hierarchy_index = $this->get_sanitized_hierarchy_index( $full_hierarchy, $full_hierarchy_index );
209
		$patterns = array();
210
		
211
		if ( $is_simple_root_field ) {
212
			$key = $this->get_storage_key_for_simple_root_field( $full_hierarchy[ count( $full_hierarchy ) - 1 ] );
213
			$patterns[ $key ] = static::PATTERN_COMPARISON_EQUAL;
214
		}
215
		
216
		if ( $is_complex_field ) {
217
			$patterns[ $this->get_storage_key_root( $full_hierarchy ) ] = static::PATTERN_COMPARISON_STARTS_WITH;