Completed
Pull Request — master (#22)
by Daryl
01:39
created
includes/class-info-window-model.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -14,60 +14,60 @@
 block discarded – undo
14 14
  */
15 15
 class Info_Window_Model extends Model_Base {
16 16
 
17
-	/**
18
-	 * @var \Clubdeuce\WPGoogleMaps\Info_Window
19
-	 */
20
-	protected $_info_window;
17
+    /**
18
+     * @var \Clubdeuce\WPGoogleMaps\Info_Window
19
+     */
20
+    protected $_info_window;
21 21
 
22
-	/**
23
-	 * Info_Window constructor.
24
-	 *
25
-	 * @param array $args
26
-	 */
27
-	function __construct( $args = array() ) {
22
+    /**
23
+     * Info_Window constructor.
24
+     *
25
+     * @param array $args
26
+     */
27
+    function __construct( $args = array() ) {
28 28
 
29
-		$args = wp_parse_args( $args, array(
30
-			'info_window' => new \Clubdeuce\WPGoogleMaps\Info_Window( $args ),
31
-		) );
29
+        $args = wp_parse_args( $args, array(
30
+            'info_window' => new \Clubdeuce\WPGoogleMaps\Info_Window( $args ),
31
+        ) );
32 32
 
33
-		parent::__construct( $args );
33
+        parent::__construct( $args );
34 34
 
35
-	}
35
+    }
36 36
 
37
-	/**
38
-	 * @return bool
39
-	 */
40
-	function has_info_window() {
37
+    /**
38
+     * @return bool
39
+     */
40
+    function has_info_window() {
41 41
 
42
-		return $this->_has( '_info_window' );
42
+        return $this->_has( '_info_window' );
43 43
 
44
-	}
44
+    }
45 45
 
46
-	/**
47
-	 * @param string $method_name
48
-	 * @param array $args
49
-	 *
50
-	 * @return mixed|null
51
-	 */
52
-	function __call( $method_name, $args ) {
46
+    /**
47
+     * @param string $method_name
48
+     * @param array $args
49
+     *
50
+     * @return mixed|null
51
+     */
52
+    function __call( $method_name, $args ) {
53 53
 
54
-		$value = null;
54
+        $value = null;
55 55
 
56
-		do {
57
-			$value = parent::__call( $method_name, $args );
56
+        do {
57
+            $value = parent::__call( $method_name, $args );
58 58
 
59
-			if ( $value ) {
60
-				break;
61
-			}
59
+            if ( $value ) {
60
+                break;
61
+            }
62 62
 
63
-			if ( $this->has_info_window() ) {
64
-				$value = call_user_func_array( array( $this->info_window(), $method_name ), $args );
65
-				break;
66
-			}
67
-		} while ( false );
63
+            if ( $this->has_info_window() ) {
64
+                $value = call_user_func_array( array( $this->info_window(), $method_name ), $args );
65
+                break;
66
+            }
67
+        } while ( false );
68 68
 
69
-		return $value;
69
+        return $value;
70 70
 
71
-	}
71
+    }
72 72
 
73 73
 }
Please login to merge, or discard this patch.
component-google-maps.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -14,19 +14,19 @@  discard block
 block discarded – undo
14 14
 
15 15
     const INSTANCE_CLASS = 'Clubdeuce\WPLib\Components\GoogleMaps\Map';
16 16
 
17
-	/**
18
-	 * @var string
19
-	 */
20
-	protected static $_version = '0.1.6';
21
-
22
-	/**
23
-	 *
24
-	 */
17
+    /**
18
+     * @var string
19
+     */
20
+    protected static $_version = '0.1.6';
21
+
22
+    /**
23
+     *
24
+     */
25 25
     static function on_load() {
26 26
 
27
-	    require_once 'vendor/autoload.php';
27
+        require_once 'vendor/autoload.php';
28 28
         self::register_helper( '\Clubdeuce\WPGoogleMaps\Google_Maps', __CLASS__ );
29
-	    \Clubdeuce\WPGoogleMaps\Google_Maps::initialize();
29
+        \Clubdeuce\WPGoogleMaps\Google_Maps::initialize();
30 30
 
31 31
     }
32 32
 
@@ -41,32 +41,32 @@  discard block
 block discarded – undo
41 41
 
42 42
     }
43 43
 
44
-	/**
45
-	 * @param $address
46
-	 * @param array $args
47
-	 *
48
-	 * @return Marker
49
-	 */
44
+    /**
45
+     * @param $address
46
+     * @param array $args
47
+     *
48
+     * @return Marker
49
+     */
50 50
     static function make_marker_by_address( $address, $args = array() ) {
51 51
 
52
-    	$marker = \Clubdeuce\WPGoogleMaps\Google_Maps::make_marker_by_address( $address, $args );
53
-    	return new Marker( array_merge( array( 'marker' => $marker ), $args ) );
52
+        $marker = \Clubdeuce\WPGoogleMaps\Google_Maps::make_marker_by_address( $address, $args );
53
+        return new Marker( array_merge( array( 'marker' => $marker ), $args ) );
54 54
 
55 55
     }
56 56
 
57
-	/**
58
-	 * @param float  $lat
59
-	 * @param float  $lng
60
-	 * @param array  $args
61
-	 *
62
-	 * @return Marker
63
-	 */
64
-	static function make_marker_by_position( $lat, $lng, $args = array() ) {
57
+    /**
58
+     * @param float  $lat
59
+     * @param float  $lng
60
+     * @param array  $args
61
+     *
62
+     * @return Marker
63
+     */
64
+    static function make_marker_by_position( $lat, $lng, $args = array() ) {
65 65
 
66
-		$marker = \Clubdeuce\WPGoogleMaps\Google_Maps::make_marker_by_position( $lat, $lng, $args );
67
-		return new Marker( array_merge( array( 'marker' => $marker ), $args ) );
66
+        $marker = \Clubdeuce\WPGoogleMaps\Google_Maps::make_marker_by_position( $lat, $lng, $args );
67
+        return new Marker( array_merge( array( 'marker' => $marker ), $args ) );
68 68
 
69
-	}
69
+    }
70 70
 }
71 71
 
72 72
 Google_Maps::on_load();
Please login to merge, or discard this patch.