Completed
Push — master ( 2c081c...898e77 )
by Daryl
02:00
created
component-google-maps.php 1 patch
Spacing   +6 added lines, -6 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,10 +94,10 @@  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
-        array_walk(static::$_script_conditions, function( $function ) {
100
+        array_walk( static::$_script_conditions, function( $function ) {
101 101
             return is_callable( $function ) ? call_user_func( $function ) : $function;
102 102
         } );
103 103
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @param  array  $args
128 128
      * @return string
129 129
      */
130
-    static function driving_directions_href($destination, $args = array() ) {
130
+    static function driving_directions_href( $destination, $args = array() ) {
131 131
 
132 132
         $args = wp_parse_args( $args, array(
133 133
             'start' => 'My Location',
Please login to merge, or discard this patch.