@@ -38,7 +38,7 @@ |
||
| 38 | 38 | if (isset($this->properties['options']) && Obj::isArray($this->properties['options'])) { |
| 39 | 39 | $options = $this->properties['options']; |
| 40 | 40 | } else { |
| 41 | - throw new SyntaxException('Options for field ' . self::nohtml($this->name) . ' is not defined'); |
|
| 41 | + throw new SyntaxException('Options for field '.self::nohtml($this->name).' is not defined'); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | // set global field type |
@@ -118,16 +118,16 @@ |
||
| 118 | 118 | return 'true'; |
| 119 | 119 | } |
| 120 | 120 | } |
| 121 | - return '\'' . $var . '\''; |
|
| 121 | + return '\''.$var.'\''; |
|
| 122 | 122 | case 'array': |
| 123 | 123 | $indexed = array_keys($var) === range(0, count($var) - 1); |
| 124 | 124 | $row = []; |
| 125 | 125 | foreach ($var as $key => $value) { |
| 126 | - $row[] = $indent . "\t" |
|
| 127 | - . ($indexed ? null : self::exportVar($key, null, $guessTypes) . ' => ') |
|
| 128 | - . self::exportVar($value, $indent . "\t", $guessTypes); |
|
| 126 | + $row[] = $indent."\t" |
|
| 127 | + . ($indexed ? null : self::exportVar($key, null, $guessTypes).' => ') |
|
| 128 | + . self::exportVar($value, $indent."\t", $guessTypes); |
|
| 129 | 129 | } |
| 130 | - return "[\n" . implode(",\n", $row) . "\n" . $indent . ']'; |
|
| 130 | + return "[\n".implode(",\n", $row)."\n".$indent.']'; |
|
| 131 | 131 | case 'boolean': |
| 132 | 132 | return $var ? 'true' : 'false'; |
| 133 | 133 | default: |