Code Duplication    Length = 7-7 lines in 2 locations

includes/models/class-marker.php 2 locations

@@ 112-118 (lines=7) @@
109
	/**
110
	 * @return double
111
	 */
112
	public function latitude() {
113
114
		if ( is_null( $this->_latitude ) && ! is_wp_error( $this->location() ) ) {
115
			$this->_latitude = $this->location()->latitude();
116
		}
117
		return doubleval( $this->_latitude );
118
	}
119
120
	/**
121
	 * @return Location|\WP_Error
@@ 136-142 (lines=7) @@
133
	/**
134
	 * @return double
135
	 */
136
	public function longitude() {
137
138
		if ( is_null( $this->_longitude ) && ! is_wp_error( $this->location() ) ) {
139
			$this->_longitude = doubleval( $this->location()->longitude() );
140
		}
141
142
		return doubleval( $this->_longitude );
143
	}
144
145
	/**