@@ -63,11 +63,11 @@ |
||
| 63 | 63 | 'longitude' => null, |
| 64 | 64 | ) ); |
| 65 | 65 | |
| 66 | - if ( empty( $args['info_window'] ) ) { |
|
| 67 | - $args['info_window'] = new Info_Window( array( |
|
| 68 | - 'position' => array( 'lat' => $args['latitude'], 'lng' => $args['longitude'] ), |
|
| 69 | - ) ); |
|
| 70 | - } |
|
| 66 | + if ( empty( $args['info_window'] ) ) { |
|
| 67 | + $args['info_window'] = new Info_Window( array( |
|
| 68 | + 'position' => array( 'lat' => $args['latitude'], 'lng' => $args['longitude'] ), |
|
| 69 | + ) ); |
|
| 70 | + } |
|
| 71 | 71 | |
| 72 | 72 | parent::__construct( $args ); |
| 73 | 73 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | 'longitude' => null, |
| 64 | 64 | ) ); |
| 65 | 65 | |
| 66 | - if ( empty( $args['info_window'] ) ) { |
|
| 66 | + if ( empty($args['info_window']) ) { |
|
| 67 | 67 | $args['info_window'] = new Info_Window( array( |
| 68 | 68 | 'position' => array( 'lat' => $args['latitude'], 'lng' => $args['longitude'] ), |
| 69 | 69 | ) ); |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | */ |
| 101 | 101 | function latitude() { |
| 102 | 102 | |
| 103 | - if ( is_null( $this->_latitude ) && ! is_wp_error( $this->location() ) ) { |
|
| 103 | + if ( is_null( $this->_latitude ) && !is_wp_error( $this->location() ) ) { |
|
| 104 | 104 | $this->_latitude = $this->location()->latitude(); |
| 105 | 105 | } |
| 106 | 106 | return doubleval( $this->_latitude ); |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | * @return Location|\WP_Error |
| 111 | 111 | */ |
| 112 | 112 | function location() { |
| 113 | - if ( ! is_object( $this->_location ) ) { |
|
| 113 | + if ( !is_object( $this->_location ) ) { |
|
| 114 | 114 | $this->_location = $this->_geocoder()->geocode( $this->_address ); |
| 115 | 115 | } |
| 116 | 116 | return $this->_location; |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | function longitude() { |
| 123 | 123 | |
| 124 | - if ( is_null( $this->_longitude ) && ! is_wp_error( $this->location() ) ) { |
|
| 124 | + if ( is_null( $this->_longitude ) && !is_wp_error( $this->location() ) ) { |
|
| 125 | 125 | $this->_longitude = doubleval( $this->location()->longitude() ); |
| 126 | 126 | } |
| 127 | 127 | return doubleval( $this->_longitude ); |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | * @return Geocoder |
| 168 | 168 | */ |
| 169 | 169 | private function _geocoder() { |
| 170 | - if (! is_a( $this->_geocoder, '\Clubdeuce\WPLib\Components\GoogleMaps\Geocoder' ) ) { |
|
| 170 | + if ( !is_a( $this->_geocoder, '\Clubdeuce\WPLib\Components\GoogleMaps\Geocoder' ) ) { |
|
| 171 | 171 | $this->_geocoder = new Geocoder(); |
| 172 | 172 | } |
| 173 | 173 | |