Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 83-85 (lines=3) @@
80
	 * @return bool
81
	 */
82
	public function offsetExists( $offset ) {
83
		if ( in_array( $offset, array( 'data' ) ) || isset( $this->data[ $offset ] ) ) {
84
			return true;
85
		}
86
		return false;
87
	}
88

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

@@ 71-73 (lines=3) @@
68
	 * @return bool
69
	 */
70
	public function offsetExists( $offset ) {
71
		if ( in_array( $offset, array( 'data' ) ) || isset( $this->data[ $offset ] ) ) {
72
			return true;
73
		}
74
		return false;
75
	}
76