Test Failed
Push — main ( eafc82...249bd3 )
by Daniel
04:23
created
src/Helper/Timestamped/TimestampedDataPersister.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
             $timestamped,
41 41
             $configuration->createdAtField,
42 42
             $isNew ?
43
-            new \DateTimeImmutable() :
44
-            $classMetadata->getFieldValue($timestamped, $configuration->createdAtField)
43
+            new \DateTimeImmutable() : $classMetadata->getFieldValue($timestamped, $configuration->createdAtField)
45 44
         );
46 45
         $classMetadata->setFieldValue($timestamped, $configuration->modifiedAtField, new \DateTime());
47 46
     }
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
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $this->pageDataMetadataFactory = $pageDataMetadataFactory;
42 42
     }
43 43
 
44
-    public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null
44
+    public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null
45 45
     {
46 46
         $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id');
47 47
         $metadata = $this->pageDataMetadataFactory->create(\get_class($object));
Please login to merge, or discard this patch.
src/Serializer/Normalizer/RouteNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      * @param Route      $object
34 34
      * @param mixed|null $format
35 35
      */
36
-    public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null
36
+    public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null
37 37
     {
38 38
         $context[self::ALREADY_CALLED] = true;
39 39
 
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
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             isset($context[self::METADATA_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
         $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id');
69 69
         $data = $this->normalizer->normalize($object, $format, $context);
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
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $this->propertyAccessor = PropertyAccess::createPropertyAccessor();
42 42
     }
43 43
 
44
-    public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null
44
+    public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null
45 45
     {
46 46
         $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id');
47 47
         $context[MetadataNormalizer::METADATA_CONTEXT]['collection'] = true;
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
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         $this->uploadableFileManager = $uploadableFileManager;
80 80
     }
81 81
 
82
-    public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null
82
+    public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null
83 83
     {
84 84
         $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id');
85 85
         $context[MetadataNormalizer::METADATA_CONTEXT]['published'] = $this->publishableStatusChecker->isActivePublishedAt($object);
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
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $this->propertyAccessor = PropertyAccess::createPropertyAccessor();
49 49
     }
50 50
 
51
-    public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null
51
+    public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null
52 52
     {
53 53
         $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id');
54 54
         $context[MetadataNormalizer::METADATA_CONTEXT]['persisted'] = $this->entityManager->contains($object);
Please login to merge, or discard this patch.
src/Serializer/Normalizer/ComponentPositionNormalizer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         return $data instanceof ComponentPosition && !isset($context[self::ALREADY_CALLED]);
102 102
     }
103 103
 
104
-    public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null
104
+    public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null
105 105
     {
106 106
         /* @var ComponentPosition $object */
107 107
         /* @var mixed|null        $format */
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         $propertyAccessor = PropertyAccess::createPropertyAccessor();
151 151
         try {
152 152
             $component = $propertyAccessor->getValue($pageData, $object->pageDataProperty);
153
-        } catch (UnexpectedTypeException|NoSuchIndexException|NoSuchPropertyException $e) {
153
+        } catch (UnexpectedTypeException | NoSuchIndexException | NoSuchPropertyException $e) {
154 154
             return $object;
155 155
         }
156 156
 
Please login to merge, or discard this patch.
src/Serializer/Normalizer/UserNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
      * @param AbstractUser $object
82 82
      * @param mixed|null   $format
83 83
      */
84
-    public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null
84
+    public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null
85 85
     {
86 86
         $context[self::ALREADY_CALLED] = true;
87 87
 
Please login to merge, or discard this patch.