@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | private function hydrateNode($node, Schema $schema) |
| 84 | 84 | { |
| 85 | 85 | if ($schema instanceof ArraySchema) { |
| 86 | - return array_map(function ($value) use ($schema) { |
|
| 86 | + return array_map(function($value) use ($schema) { |
|
| 87 | 87 | return $this->hydrateNode($value, $schema->getItemsSchema()); |
| 88 | 88 | }, $node); |
| 89 | 89 | } |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | return $object; |
| 100 | 100 | } |
| 101 | - $fqcn = $this->classNameResolver->resolve($schema->getComplexType()->getName());; |
|
| 101 | + $fqcn = $this->classNameResolver->resolve($schema->getComplexType()->getName()); ; |
|
| 102 | 102 | $object = unserialize(sprintf('O:%d:"%s":0:{}', strlen($fqcn), $fqcn)); |
| 103 | 103 | $reflector = new \ReflectionObject($object); |
| 104 | 104 | |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | return $this->dateTimeSerializer->serialize($node, $schema); |
| 137 | 137 | } |
| 138 | 138 | if ($schema instanceof ArraySchema) { |
| 139 | - return array_map(function ($value) use ($schema) { |
|
| 139 | + return array_map(function($value) use ($schema) { |
|
| 140 | 140 | return $this->dehydrateNode($value, $schema->getItemsSchema()); |
| 141 | 141 | }, $node); |
| 142 | 142 | } |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | $class = get_class($node); |
| 146 | 146 | $offset = strlen($class) + 2; |
| 147 | 147 | $data = (array)$node; |
| 148 | - $array = array_filter(array_combine(array_map(function ($k) use ($offset) { |
|
| 148 | + $array = array_filter(array_combine(array_map(function($k) use ($offset) { |
|
| 149 | 149 | return substr($k, $offset); |
| 150 | 150 | }, array_keys($data)), array_values($data))); |
| 151 | 151 | $node = (object)$array; |