@@ -94,8 +94,8 @@ discard block |
||
94 | 94 | */ |
95 | 95 | function latitude() { |
96 | 96 | |
97 | - if ( is_null( $this->_latitude ) && ! is_wp_error( $this->location() ) ) { |
|
98 | - $this->_latitude =$this->location()->latitude(); |
|
97 | + if ( is_null( $this->_latitude ) && !is_wp_error( $this->location() ) ) { |
|
98 | + $this->_latitude = $this->location()->latitude(); |
|
99 | 99 | } |
100 | 100 | return doubleval( $this->_latitude ); |
101 | 101 | } |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * @return Location|\WP_Error |
105 | 105 | */ |
106 | 106 | function location() { |
107 | - if ( ! is_object( $this->_location ) ) { |
|
107 | + if ( !is_object( $this->_location ) ) { |
|
108 | 108 | $this->_location = $this->_geocoder()->geocode( $this->_address ); |
109 | 109 | } |
110 | 110 | return $this->_location; |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | */ |
116 | 116 | function longitude() { |
117 | 117 | |
118 | - if ( is_null( $this->_longitude ) && ! is_wp_error( $this->location() ) ) { |
|
118 | + if ( is_null( $this->_longitude ) && !is_wp_error( $this->location() ) ) { |
|
119 | 119 | $this->_longitude = doubleval( $this->location()->longitude() ); |
120 | 120 | } |
121 | 121 | return doubleval( $this->_longitude ); |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | * @return Geocoder |
162 | 162 | */ |
163 | 163 | private function _geocoder() { |
164 | - if (! is_object( $this->_geocoder ) ) { |
|
164 | + if ( !is_object( $this->_geocoder ) ) { |
|
165 | 165 | $this->_geocoder = new Geocoder(); |
166 | 166 | } |
167 | 167 |