@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | */ |
67 | 67 | static function geocoder() { |
68 | 68 | |
69 | - if ( ! isset( static::$_geocoder ) ) { |
|
70 | - static::$_geocoder = new Geocoder( ['api_key' => self::api_key() ] ); |
|
69 | + if ( !isset(static::$_geocoder) ) { |
|
70 | + static::$_geocoder = new Geocoder( ['api_key' => self::api_key()] ); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | return static::$_geocoder; |
@@ -112,8 +112,8 @@ discard block |
||
112 | 112 | $source = sprintf( '%1$s/assets/maps.js', self::source_url() ); |
113 | 113 | } |
114 | 114 | |
115 | - wp_register_script('google-maps', "https://maps.google.com/maps/api/js?v=3&key={$key}", false, '3.0', true ); |
|
116 | - wp_register_script('map-control', $source, array( 'jquery', 'google-maps' ), self::version(), true ); |
|
115 | + wp_register_script( 'google-maps', "https://maps.google.com/maps/api/js?v=3&key={$key}", false, '3.0', true ); |
|
116 | + wp_register_script( 'map-control', $source, array( 'jquery', 'google-maps' ), self::version(), true ); |
|
117 | 117 | |
118 | 118 | $conditions = array_map( array( __CLASS__, '_evaluate_condition' ), static::$_script_conditions ); |
119 | 119 | |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | * @param array $args |
150 | 150 | * @return string |
151 | 151 | */ |
152 | - static function driving_directions_href($destination, $args = array() ) { |
|
152 | + static function driving_directions_href( $destination, $args = array() ) { |
|
153 | 153 | |
154 | 154 | $args = wp_parse_args( $args, array( |
155 | 155 | 'start' => 'My Location', |