Completed
Push — master ( ab0124...f7497b )
by Daryl
01:56
created
component-google-maps.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
      */
48 48
     static function geocoder() {
49 49
 
50
-        if ( ! isset( self::$_geocoder ) ) {
51
-            self::$_geocoder = new Geocoder( ['api_key' => GOOGLE_MAPS_API_KEY ] );
50
+        if ( !isset(self::$_geocoder) ) {
51
+            self::$_geocoder = new Geocoder( ['api_key' => GOOGLE_MAPS_API_KEY] );
52 52
         }
53 53
 
54 54
         return self::$_geocoder;
@@ -87,10 +87,10 @@  discard block
 block discarded – undo
87 87
 
88 88
         $key = static::api_key();
89 89
 
90
-        wp_register_script('google-maps', "https://maps.google.com/maps/api/js?key={$key}", false, '3.0', true );
91
-        wp_register_script('map-control', home_url( '/vendor/clubdeuce/wplib-olm-google-maps/assets/maps.js' ), array( 'jquery', 'google-maps' ), '0.1', true );
90
+        wp_register_script( 'google-maps', "https://maps.google.com/maps/api/js?key={$key}", false, '3.0', true );
91
+        wp_register_script( 'map-control', home_url( '/vendor/clubdeuce/wplib-olm-google-maps/assets/maps.js' ), array( 'jquery', 'google-maps' ), '0.1', true );
92 92
 
93
-        array_walk(static::$_script_conditions, function( $function ) {
93
+        array_walk( static::$_script_conditions, function( $function ) {
94 94
             return is_callable( $function ) ? call_user_func( $function ) : $function;
95 95
         } );
96 96
 
Please login to merge, or discard this patch.
includes/class-marker-model.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * @return Location
55 55
      */
56 56
     function location() {
57
-        if ( ! is_object( $this->_location ) ) {
57
+        if ( !is_object( $this->_location ) ) {
58 58
             $this->_location = $this->_geocoder()->geocode( $this->_address );
59 59
         }
60 60
         return $this->_location;
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @return Geocoder
79 79
      */
80 80
     private function _geocoder() {
81
-        if (! is_object( $this->_geocoder ) ) {
81
+        if ( !is_object( $this->_geocoder ) ) {
82 82
             $this->_geocoder = new Geocoder();
83 83
         }
84 84
 
Please login to merge, or discard this patch.