Code Duplication    Length = 7-7 lines in 2 locations

includes/models/class-marker.php 2 locations

@@ 120-126 (lines=7) @@
117
	/**
118
	 * @return double
119
	 */
120
	public function latitude() {
121
122
		if ( is_null( $this->_latitude ) && ! is_wp_error( $this->location() ) ) {
123
			$this->_latitude = $this->location()->latitude();
124
		}
125
		return doubleval( $this->_latitude );
126
	}
127
128
	/**
129
	 * @return Location|\WP_Error
@@ 144-150 (lines=7) @@
141
	/**
142
	 * @return double
143
	 */
144
	public function longitude() {
145
146
		if ( is_null( $this->_longitude ) && ! is_wp_error( $this->location() ) ) {
147
			$this->_longitude = doubleval( $this->location()->longitude() );
148
		}
149
150
		return doubleval( $this->_longitude );
151
	}
152
153
	/**