Completed
Pull Request — master (#608)
by Amrouche
03:47
created
src/Hypermedia/ContextBuilder.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -66,12 +66,12 @@
 block discarded – undo
66 66
     {
67 67
         return [
68 68
             '_links' => ['self' => ['href' => $selfLink],
69
-                 'curies' => [
70
-                     ['name' => 'ap',
71
-                      'href' => $this->urlGenerator->generate('api_hal_entrypoint').$this->docUri.'#section-{rel}',
72
-                      'templated' => true,
73
-                     ],
74
-                 ],
69
+                    'curies' => [
70
+                        ['name' => 'ap',
71
+                        'href' => $this->urlGenerator->generate('api_hal_entrypoint').$this->docUri.'#section-{rel}',
72
+                        'templated' => true,
73
+                        ],
74
+                    ],
75 75
                 ],
76 76
         ];
77 77
     }
Please login to merge, or discard this patch.
src/Hal/Serializer/ItemNormalizer.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -293,6 +293,7 @@
 block discarded – undo
293 293
      * @param string           $className
294 294
      * @param mixed            $value
295 295
      * @param array            $context
296
+     * @param string|null $format
296 297
      *
297 298
      * @throws InvalidArgumentException
298 299
      *
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $this->propertyAccessor = $propertyAccessor ?: PropertyAccess::createPropertyAccessor();
58 58
         $this->formats = $formats;
59 59
 
60
-        $this->setCircularReferenceHandler(function ($object) {
60
+        $this->setCircularReferenceHandler(function($object) {
61 61
             return $this->iriConverter->getIriFromItem($object);
62 62
         });
63 63
     }
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
             $propertyMetadata = $this->propertyMetadataFactory->create($context['resource_class'], $propertyName, $options);
194 194
             if (
195 195
                 ((isset($context['jsonhal_normalize'])) && $propertyMetadata->isReadable()) ||
196
-                ((isset($context['jsonhal_denormalize']))  && $propertyMetadata->isWritable())
196
+                ((isset($context['jsonhal_denormalize'])) && $propertyMetadata->isWritable())
197 197
             ) {
198 198
                 $allowedAttributes[] = $propertyName;
199 199
             }
Please login to merge, or discard this patch.
src/Hal/ContextBuilder.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -56,12 +56,12 @@
 block discarded – undo
56 56
     {
57 57
         return [
58 58
             '_links' => ['self' => ['href' => $referenceType ? $this->urlGenerator->generate('api_hal_entrypoint') : $linkUrl],
59
-                         'curies' => [
60
-                             ['name' => 'ap',
61
-                              'href' => $this->urlGenerator->generate('api_hal_entrypoint').$this->docUri.'#section-{rel}',
62
-                              'templated' => true,
63
-                             ],
64
-                         ],
59
+                            'curies' => [
60
+                                ['name' => 'ap',
61
+                                'href' => $this->urlGenerator->generate('api_hal_entrypoint').$this->docUri.'#section-{rel}',
62
+                                'templated' => true,
63
+                                ],
64
+                            ],
65 65
             ],
66 66
         ];
67 67
     }
Please login to merge, or discard this patch.