Passed
Pull Request — main (#155)
by Daniel
07:51 queued 03:12
created
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.