Passed
Pull Request — main (#152)
by Daniel
08:53 queued 04:33
created
src/Action/Uploadable/UploadAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
  */
29 29
 class UploadAction
30 30
 {
31
-    public function __construct(private NormalizerInterface|PublishableNormalizer $publishableNormalizer)
31
+    public function __construct(private NormalizerInterface | PublishableNormalizer $publishableNormalizer)
32 32
     {
33 33
     }
34 34
 
Please login to merge, or discard this patch.
src/Serializer/Normalizer/DataUriNormalizer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
     use DenormalizerAwareTrait;
38 38
     use NormalizerAwareTrait;
39 39
 
40
-    private NormalizerInterface|SymfonyDataUriNormalizer $decorated;
40
+    private NormalizerInterface | SymfonyDataUriNormalizer $decorated;
41 41
 
42
-    public function __construct(NormalizerInterface|SymfonyDataUriNormalizer $decorated)
42
+    public function __construct(NormalizerInterface | SymfonyDataUriNormalizer $decorated)
43 43
     {
44 44
         $this->decorated = $decorated;
45 45
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         return $this->decorated->supportsDenormalization($data, $type, $format, $context);
64 64
     }
65 65
 
66
-    public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null
66
+    public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null
67 67
     {
68 68
         return $this->decorated->normalize($object, $format, $context);
69 69
     }
Please login to merge, or discard this patch.
src/Serializer/Normalizer/CollectionNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $this->propertyAccessor = PropertyAccess::createPropertyAccessor();
43 43
     }
44 44
 
45
-    public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null
45
+    public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null
46 46
     {
47 47
         $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id');
48 48
         $this->resourceMetadata->setCollection(true);
Please login to merge, or discard this patch.
src/Serializer/Normalizer/MetadataNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             $this->resourceMetadata->isInit();
62 62
     }
63 63
 
64
-    public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null
64
+    public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null
65 65
     {
66 66
         $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id');
67 67
         $metadataContext = $context;
Please login to merge, or discard this patch.
src/Serializer/Normalizer/PersistedNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $this->propertyAccessor = PropertyAccess::createPropertyAccessor();
47 47
     }
48 48
 
49
-    public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null
49
+    public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null
50 50
     {
51 51
         $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id');
52 52
         $this->resourceMetadata->setPersisted($this->entityManager->contains($object));
Please login to merge, or discard this patch.
src/Serializer/Normalizer/PageDataNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $this->propertyAccessor = PropertyAccess::createPropertyAccessor();
43 43
     }
44 44
 
45
-    public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null
45
+    public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null
46 46
     {
47 47
         $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id');
48 48
         $metadata = $this->pageDataMetadataFactory->create(\get_class($object));
Please login to merge, or discard this patch.
src/Serializer/Normalizer/PublishableNormalizer.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
         $this->propertyAccessor = PropertyAccess::createPropertyAccessor();
68 68
     }
69 69
 
70
-    public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null
70
+    public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null
71 71
     {
72 72
         $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id');
73 73
 
Please login to merge, or discard this patch.
src/Resources/config/services.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1370,10 +1370,10 @@
 block discarded – undo
1370 1370
         ->class(ResourceMetadataBuilder::class);
1371 1371
 
1372 1372
     $services->set(MercureResourcePublisher::class)
1373
-             ->args([
1374
-                 new Reference('mercure.hub.default'),
1375
-                 new Reference('api_platform.iri_converter'),
1376
-                 new Reference('api_platform.metadata.resource.metadata_collection_factory'),
1377
-             ])
1378
-             ->call('setSerializer', [new Reference('serializer')]);
1373
+                ->args([
1374
+                    new Reference('mercure.hub.default'),
1375
+                    new Reference('api_platform.iri_converter'),
1376
+                    new Reference('api_platform.metadata.resource.metadata_collection_factory'),
1377
+                ])
1378
+                ->call('setSerializer', [new Reference('serializer')]);
1379 1379
 };
Please login to merge, or discard this patch.