@@ -167,7 +167,7 @@ |
||
| 167 | 167 | |
| 168 | 168 | //we need read_only before setter and getter set, because that method depends on flag being set |
| 169 | 169 | if (isset($pConfig['read_only'])) { |
| 170 | - $pMetadata->readOnly = (Boolean) $pConfig['read_only']; |
|
| 170 | + $pMetadata->readOnly = (Boolean) $pConfig['read_only']; |
|
| 171 | 171 | } else { |
| 172 | 172 | $pMetadata->readOnly = $pMetadata->readOnly || $readOnlyClass; |
| 173 | 173 | } |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |(.) |
| 50 | 50 | /x', |
| 51 | 51 | array(self::T_NAME => 'T_NAME', self::T_STRING => 'T_STRING', self::T_OPEN_BRACKET => 'T_OPEN_BRACKET', |
| 52 | - self::T_CLOSE_BRACKET => 'T_CLOSE_BRACKET', self::T_COMMA => 'T_COMMA', self::T_NONE => 'T_NONE'), |
|
| 52 | + self::T_CLOSE_BRACKET => 'T_CLOSE_BRACKET', self::T_COMMA => 'T_COMMA', self::T_NONE => 'T_NONE'), |
|
| 53 | 53 | function($value) { |
| 54 | 54 | switch ($value[0]) { |
| 55 | 55 | case '"': |
@@ -168,8 +168,8 @@ |
||
| 168 | 168 | |
| 169 | 169 | if ( ! $metadata->inline) { |
| 170 | 170 | $this->writer |
| 171 | - ->writeln(Inline::dump($name).':') |
|
| 172 | - ->indent(); |
|
| 171 | + ->writeln(Inline::dump($name).':') |
|
| 172 | + ->indent(); |
|
| 173 | 173 | } |
| 174 | 174 | |
| 175 | 175 | $this->setCurrentMetadata($metadata); |
@@ -226,7 +226,7 @@ |
||
| 226 | 226 | throw new RuntimeException(sprintf('You must define a type for %s::$%s.', $metadata->reflection->class, $metadata->name)); |
| 227 | 227 | } |
| 228 | 228 | |
| 229 | - if ($metadata->xmlAttribute) { |
|
| 229 | + if ($metadata->xmlAttribute) { |
|
| 230 | 230 | |
| 231 | 231 | $attributes = $data->attributes($metadata->xmlNamespace); |
| 232 | 232 | if (isset($attributes[$name])) { |
@@ -132,6 +132,9 @@ discard block |
||
| 132 | 132 | return $doCData ? $this->document->createCDATASection($data) : $this->document->createTextNode((string) $data); |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | + /** |
|
| 136 | + * @param string $data |
|
| 137 | + */ |
|
| 135 | 138 | public function visitSimpleString($data, array $type, Context $context) |
| 136 | 139 | { |
| 137 | 140 | if (null === $this->document) { |
@@ -478,6 +481,9 @@ discard block |
||
| 478 | 481 | return $this->document->createElementNS($namespace, $prefix . ':' . $tagName); |
| 479 | 482 | } |
| 480 | 483 | |
| 484 | + /** |
|
| 485 | + * @param string $value |
|
| 486 | + */ |
|
| 481 | 487 | private function setAttributeOnNode(\DOMElement $node, $name, $value, $namespace = null) |
| 482 | 488 | { |
| 483 | 489 | if (null !== $namespace) { |