@@ -10,10 +10,10 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | const INSTANCE_CLASS = 'Clubdeuce\WPLib\Components\GoogleMaps\Map'; |
| 12 | 12 | |
| 13 | - /** |
|
| 14 | - * @var string |
|
| 15 | - */ |
|
| 16 | - protected static $_version = '0.1.5'; |
|
| 13 | + /** |
|
| 14 | + * @var string |
|
| 15 | + */ |
|
| 16 | + protected static $_version = '0.1.5'; |
|
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * @var string |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | |
| 205 | 205 | static function version() { |
| 206 | 206 | |
| 207 | - return self::$_version; |
|
| 207 | + return self::$_version; |
|
| 208 | 208 | |
| 209 | 209 | } |
| 210 | 210 | |
@@ -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', |