Code Duplication    Length = 3-3 lines in 2 locations

includes/abstracts/abstract-wc-item.php 1 location

@@ 106-108 (lines=3) @@
103
	 * @return bool
104
	 */
105
	public function offsetExists( $offset ) {
106
		if ( 'item_meta_array' === $offset || 'item_meta' === $offset || array_key_exists( $offset, $this->data ) ) {
107
			return true;
108
		}
109
		return array_key_exists( '_' . $offset, wp_list_pluck( $this->meta_data, 'value', 'key' ) );
110
	}
111

includes/class-wc-order-item.php 1 location

@@ 358-360 (lines=3) @@
355
	 * @return bool
356
	 */
357
	public function offsetExists( $offset ) {
358
		if ( 'item_meta_array' === $offset || 'item_meta' === $offset || array_key_exists( $offset, $this->data ) ) {
359
			return true;
360
		}
361
		return array_key_exists( '_' . $offset, wp_list_pluck( $this->meta_data, 'value', 'key' ) );
362
	}
363