@@ -89,8 +89,8 @@ |
||
| 89 | 89 | $datas = []; |
| 90 | 90 | foreach ($object as $obj) { |
| 91 | 91 | $data = $this->serializer->normalize($obj, $format, $context); |
| 92 | - // @todo : This has to be done in the noramlizer |
|
| 93 | - $data['id'] = $data['@id']; |
|
| 92 | + // @todo : This has to be done in the noramlizer |
|
| 93 | + $data['id'] = $data['@id']; |
|
| 94 | 94 | unset($data['@id']); |
| 95 | 95 | unset($data['@type']); |
| 96 | 96 | |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | if ([] === $appliedFilters && !$paginated) { |
| 68 | 68 | return $data; |
| 69 | 69 | } |
| 70 | - if ($format === self::FORMAT) { |
|
| 70 | + if ($format === self::FORMAT) { |
|
| 71 | 71 | $data['view'] = [ |
| 72 | 72 | 'page' => $this->getId($parts, $parameters, $paginated ? $currentPage : null), |
| 73 | 73 | ]; |
@@ -70,6 +70,6 @@ |
||
| 70 | 70 | */ |
| 71 | 71 | public function supportsNormalization($data, $format = null) |
| 72 | 72 | { |
| 73 | - return in_array($format, self::FORMAT) && $data instanceof ConstraintViolationListInterface; |
|
| 73 | + return in_array($format, self::FORMAT) && $data instanceof ConstraintViolationListInterface; |
|
| 74 | 74 | } |
| 75 | 75 | } |