Completed
Pull Request — master (#22)
by Daryl
01:32
created
includes/class-marker.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -20,20 +20,20 @@
 block discarded – undo
20 20
  */
21 21
 class Marker extends \WPLib_Item_Base {
22 22
 
23
-	/**
24
-	 * Marker_Model constructor.
25
-	 *
26
-	 * @param array $args
27
-	 */
28
-	function __construct( $args = array() ) {
23
+    /**
24
+     * Marker_Model constructor.
25
+     *
26
+     * @param array $args
27
+     */
28
+    function __construct( $args = array() ) {
29 29
 
30
-		$args = wp_parse_args( $args, array(
31
-			'model' => new Marker_Model( array( 'marker' => new \Clubdeuce\WPGoogleMaps\Marker( $args ) ) ),
32
-		) );
30
+        $args = wp_parse_args( $args, array(
31
+            'model' => new Marker_Model( array( 'marker' => new \Clubdeuce\WPGoogleMaps\Marker( $args ) ) ),
32
+        ) );
33 33
 
34
-		parent::__construct( $args );
34
+        parent::__construct( $args );
35 35
 
36
-	}
36
+    }
37 37
 
38 38
 
39 39
 }
Please login to merge, or discard this patch.
includes/class-map.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -22,19 +22,19 @@
 block discarded – undo
22 22
  */
23 23
 class Map extends \WPLib_Item_Base {
24 24
 
25
-	/**
26
-	 * Map_Model constructor.
27
-	 *
28
-	 * @param array $args
29
-	 */
30
-	function __construct( $args = array() ) {
25
+    /**
26
+     * Map_Model constructor.
27
+     *
28
+     * @param array $args
29
+     */
30
+    function __construct( $args = array() ) {
31 31
 
32
-		$args = wp_parse_args( $args, array(
33
-			'model' => new Map_Model( array( 'map' => new \Clubdeuce\WPGoogleMaps\Map( $args ) ) ),
34
-		) );
32
+        $args = wp_parse_args( $args, array(
33
+            'model' => new Map_Model( array( 'map' => new \Clubdeuce\WPGoogleMaps\Map( $args ) ) ),
34
+        ) );
35 35
 
36
-		parent::__construct( $args );
36
+        parent::__construct( $args );
37 37
 
38
-	}
38
+    }
39 39
 
40 40
 }
41 41
\ No newline at end of file
Please login to merge, or discard this patch.
includes/class-location-model.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -24,31 +24,31 @@  discard block
 block discarded – undo
24 24
      */
25 25
     protected $_location;
26 26
 
27
-	/**
28
-	 * Location_Model constructor.
29
-	 *
30
-	 * @param array $args
31
-	 */
32
-	function __construct( $args = array() ) {
27
+    /**
28
+     * Location_Model constructor.
29
+     *
30
+     * @param array $args
31
+     */
32
+    function __construct( $args = array() ) {
33 33
 
34
-		$location = new Location( $args );
34
+        $location = new Location( $args );
35 35
 
36
-		$args = wp_parse_args( $args, array(
37
-			'location' => $location,
38
-		) );
36
+        $args = wp_parse_args( $args, array(
37
+            'location' => $location,
38
+        ) );
39 39
 
40
-		parent::__construct( $args );
40
+        parent::__construct( $args );
41 41
 
42
-	}
42
+    }
43 43
 
44
-	/**
45
-	 * @return bool
46
-	 */
47
-	function has_location() {
44
+    /**
45
+     * @return bool
46
+     */
47
+    function has_location() {
48 48
 
49
-		return $this->_has( '_location' );
49
+        return $this->_has( '_location' );
50 50
 
51
-	}
51
+    }
52 52
 
53 53
     /**
54 54
      * @param  string $method_name
@@ -57,21 +57,21 @@  discard block
 block discarded – undo
57 57
     public function __call( $method_name, $args ) {
58 58
         $value = null;
59 59
 
60
-	    do {
60
+        do {
61 61
 
62
-		    if ( property_exists( $this, "_{$method_name}" ) ) {
63
-			    $property = "_{$method_name}";
64
-			    $value = $this->{$property};
65
-			    break;
66
-		    }
62
+            if ( property_exists( $this, "_{$method_name}" ) ) {
63
+                $property = "_{$method_name}";
64
+                $value = $this->{$property};
65
+                break;
66
+            }
67 67
 
68
-		    if ( ! isset( $this->_location ) ) {
69
-		    	break;
70
-		    }
68
+            if ( ! isset( $this->_location ) ) {
69
+                break;
70
+            }
71 71
 
72
-		    $value = call_user_func_array( array( $this->_location, $method_name ), $args );
72
+            $value = call_user_func_array( array( $this->_location, $method_name ), $args );
73 73
 
74
-	    } while ( false );
74
+        } while ( false );
75 75
 
76 76
         return $value;
77 77
     }
Please login to merge, or discard this patch.