Completed
Push — master ( 7dd0f8...48ecf0 )
by Daryl
02:02
created
component-google-maps.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
      */
49 49
     static function geocoder() {
50 50
 
51
-        if ( ! isset( static::$_geocoder ) ) {
52
-            static::$_geocoder = new Geocoder( ['api_key' => self::api_key() ] );
51
+        if ( !isset(static::$_geocoder) ) {
52
+            static::$_geocoder = new Geocoder( ['api_key' => self::api_key()] );
53 53
         }
54 54
 
55 55
         return static::$_geocoder;
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
             $source = home_url( '/vendor/clubdeuce/wplib-olm-google-maps/assets/maps.js' );
95 95
         }
96 96
 
97
-        wp_register_script('google-maps', "https://maps.google.com/maps/api/js?v=3&key={$key}", false, '3.0', true );
98
-        wp_register_script('map-control', $source, array( 'jquery', 'google-maps' ), '0.1.2', true );
97
+        wp_register_script( 'google-maps', "https://maps.google.com/maps/api/js?v=3&key={$key}", false, '3.0', true );
98
+        wp_register_script( 'map-control', $source, array( 'jquery', 'google-maps' ), '0.1.2', true );
99 99
 
100 100
         $conditions = array_map( array( __CLASS__, '_evaluate_condition' ), static::$_script_conditions );
101 101
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      * @param  array  $args
132 132
      * @return string
133 133
      */
134
-    static function driving_directions_href($destination, $args = array() ) {
134
+    static function driving_directions_href( $destination, $args = array() ) {
135 135
 
136 136
         $args = wp_parse_args( $args, array(
137 137
             'start' => 'My Location',
Please login to merge, or discard this patch.