Completed
Pull Request — master (#591)
by Amrouche
05:03 queued 01:08
created
src/Swagger/Serializer/CollectionNormalizer.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,8 +89,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Swagger/Serializer/PartialCollectionViewNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
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
             ];
Please login to merge, or discard this patch.
Bridge/Symfony/Validator/Serializer/ConstraintViolationListNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,6 +70,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.