@@ -50,7 +50,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -66,7 +66,7 @@ |
||
| 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 | |
@@ -89,9 +89,9 @@ |
||
| 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; |
@@ -91,7 +91,7 @@ |
||
| 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; |