Code Duplication    Length = 9-9 lines in 2 locations

includes/class-wc-customer.php 2 locations

@@ 81-89 (lines=9) @@
78
	 * @param mixed $property
79
	 * @return bool
80
	 */
81
	public function __isset( $property ) {
82
		if ( 'address' === $property ) {
83
			$property = 'address_1';
84
		}
85
		if ( 'shipping_address' === $property ) {
86
			$property = 'shipping_address_1';
87
		}
88
		return isset( $this->_data[ $property ] );
89
	}
90
91
	/**
92
	 * __get function.
@@ 97-105 (lines=9) @@
94
	 * @param string $property
95
	 * @return string
96
	 */
97
	public function __get( $property ) {
98
		if ( 'address' === $property ) {
99
			$property = 'address_1';
100
		}
101
		if ( 'shipping_address' === $property ) {
102
			$property = 'shipping_address_1';
103
		}
104
		return isset( $this->_data[ $property ] ) ? $this->_data[ $property ] : '';
105
	}
106
107
	/**
108
	 * __set function.