Completed
Pull Request — master (#30)
by
unknown
05:11
created
src/model/PhpProperty.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	 * @param string $indent
51 51
 	 * @return string
52 52
 	 */
53
-	static public function export($var, $indent="") {
53
+	static public function export($var, $indent = "") {
54 54
 		switch (gettype($var)) {
55 55
 			case "string":
56 56
 				return '"' . addcslashes($var, "\\\$\"\r\n\t\v\f") . '"';
@@ -98,9 +98,9 @@  discard block
 block discarded – undo
98 98
 			$default = $defaultProperties[$ref->name];
99 99
 			if (is_string($default)) {
100 100
 				$property->setValue($default);
101
-			} elseif(is_array($default)) {
101
+			} elseif (is_array($default)) {
102 102
 				$property->setValue(static::export($default));
103
-			} elseif(is_object($default)) {
103
+			} elseif (is_object($default)) {
104 104
 			} else {
105 105
 				$property->setExpression($default);
106 106
 			}
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 			case "boolean":
67 67
 				return $var ? "TRUE" : "FALSE";
68 68
 			default:
69
-				return var_export($var, TRUE);
69
+				return var_export($var, true);
70 70
 		}
71 71
 	}
72 72
 
Please login to merge, or discard this patch.
src/utils/Writer.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,9 +89,9 @@
 block discarded – undo
89 89
 					$this->content .= "\n";
90 90
 				}
91 91
 			}
92
-		} elseif(is_null($content)) {
92
+		} elseif (is_null($content)) {
93 93
 			$this->content .= 'null';
94
-		} elseif(is_bool($content)){
94
+		} elseif (is_bool($content)) {
95 95
 			$this->content .= $content ? 'true' : 'false';
96 96
 		}
97 97
 		return $this;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 			}
92 92
 		} elseif(is_null($content)) {
93 93
 			$this->content .= 'null';
94
-		} elseif(is_bool($content)){
94
+		} elseif(is_bool($content)) {
95 95
 			$this->content .= $content ? 'true' : 'false';
96 96
 		}
97 97
 		return $this;
Please login to merge, or discard this patch.