@@ -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])) { |
@@ -151,10 +151,10 @@ discard block |
||
| 151 | 151 | |
| 152 | 152 | if ($namespace === null && $this->objectMetadataStack->count()) { |
| 153 | 153 | $classMetadata = $this->objectMetadataStack->top(); |
| 154 | - $namespace = isset($classMetadata->xmlNamespaces[''])?$classMetadata->xmlNamespaces['']:$namespace; |
|
| 154 | + $namespace = isset($classMetadata->xmlNamespaces['']) ? $classMetadata->xmlNamespaces[''] : $namespace; |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | - if ( ! isset($data->$entryName) ) { |
|
| 157 | + if ( ! isset($data->$entryName)) { |
|
| 158 | 158 | if (null === $this->result) { |
| 159 | 159 | return $this->result = array(); |
| 160 | 160 | } |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | |
| 247 | 247 | if ($metadata->xmlCollection) { |
| 248 | 248 | $enclosingElem = $data; |
| 249 | - if (!$metadata->xmlCollectionInline) { |
|
| 249 | + if ( ! $metadata->xmlCollectionInline) { |
|
| 250 | 250 | $enclosingElem = $data->children($metadata->xmlNamespace)->$name; |
| 251 | 251 | } |
| 252 | 252 | |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | |
| 261 | 261 | if ($metadata->xmlNamespace) { |
| 262 | 262 | $node = $data->children($metadata->xmlNamespace)->$name; |
| 263 | - if (!$node->count()) { |
|
| 263 | + if ( ! $node->count()) { |
|
| 264 | 264 | return; |
| 265 | 265 | } |
| 266 | 266 | } else { |
@@ -270,13 +270,13 @@ discard block |
||
| 270 | 270 | if (isset($namespaces[''])) { |
| 271 | 271 | $prefix = uniqid('ns-'); |
| 272 | 272 | $data->registerXPathNamespace($prefix, $namespaces['']); |
| 273 | - $nodes = $data->xpath('./'.$prefix. ':'.$name ); |
|
| 273 | + $nodes = $data->xpath('./'.$prefix.':'.$name); |
|
| 274 | 274 | if (empty($nodes)) { |
| 275 | 275 | return; |
| 276 | 276 | } |
| 277 | 277 | $node = reset($nodes); |
| 278 | 278 | } else { |
| 279 | - if (!isset($data->$name)) { |
|
| 279 | + if ( ! isset($data->$name)) { |
|
| 280 | 280 | return; |
| 281 | 281 | } |
| 282 | 282 | $node = $data->$name; |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | $parentStr |
| 156 | 156 | ) = $unserialized; |
| 157 | 157 | |
| 158 | - if (isset($unserialized['xmlEntryNamespace'])){ |
|
| 158 | + if (isset($unserialized['xmlEntryNamespace'])) { |
|
| 159 | 159 | $this->xmlEntryNamespace = $unserialized['xmlEntryNamespace']; |
| 160 | 160 | } |
| 161 | 161 | |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | $parentStr |
| 156 | 156 | ) = $unserialized; |
| 157 | 157 | |
| 158 | - if (isset($unserialized['xmlEntryNamespace'])){ |
|
| 158 | + if (isset($unserialized['xmlEntryNamespace'])) { |
|
| 159 | 159 | $this->xmlEntryNamespace = $unserialized['xmlEntryNamespace']; |
| 160 | 160 | } |
| 161 | 161 | |