@@ -63,7 +63,7 @@ |
||
| 63 | 63 | return !\in_array($id, $context[self::ALREADY_CALLED], true); |
| 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 | $metadataContext = $context; |
@@ -37,8 +37,8 @@ |
||
| 37 | 37 | { |
| 38 | 38 | private array $pageDataPropertiesChanged = []; |
| 39 | 39 | private PropertyAccessor $propertyAccessor; |
| 40 | - private ObjectRepository|EntityRepository $collectionRepository; |
|
| 41 | - private ObjectRepository|EntityRepository $positionRepository; |
|
| 40 | + private ObjectRepository | EntityRepository $collectionRepository; |
|
| 41 | + private ObjectRepository | EntityRepository $positionRepository; |
|
| 42 | 42 | private array $resourceIris = []; |
| 43 | 43 | |
| 44 | 44 | public function __construct( |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $resourceClass = $this->resourceClassResolver->getResourceClass($entity); |
| 45 | 45 | $resourceIri = $this->iriConverter->getIriFromResource($resourceClass, UrlGeneratorInterface::ABS_PATH, (new GetCollection())->withClass($resourceClass)); |
| 46 | 46 | $this->collectIri([$resourceIri]); |
| 47 | - } catch (OperationNotFoundException|InvalidArgumentException $e) { |
|
| 47 | + } catch (OperationNotFoundException | InvalidArgumentException $e) { |
|
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | try { |
| 75 | 75 | $iri = $this->iriConverter->getIriFromResource($item); |
| 76 | 76 | $this->collectIri([$iri]); |
| 77 | - } catch (InvalidArgumentException|RuntimeException $e) { |
|
| 77 | + } catch (InvalidArgumentException | RuntimeException $e) { |
|
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | 80 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | return $data instanceof ComponentPosition && !isset($context[self::ALREADY_CALLED]); |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | - public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null |
|
| 94 | + public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null |
|
| 95 | 95 | { |
| 96 | 96 | /* @var ComponentPosition $object */ |
| 97 | 97 | /* @var mixed|null $format */ |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | } |
| 150 | 150 | try { |
| 151 | 151 | $pageData = $this->pageDataProvider->getPageData(); |
| 152 | - } catch(UnprocessableEntityHttpException $e) { |
|
| 152 | + } catch (UnprocessableEntityHttpException $e) { |
|
| 153 | 153 | // when serializing for mercure, we do not need the path header |
| 154 | 154 | return $object; |
| 155 | 155 | } |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | $propertyAccessor = PropertyAccess::createPropertyAccessor(); |
| 162 | 162 | try { |
| 163 | 163 | $component = $propertyAccessor->getValue($pageData, $object->pageDataProperty); |
| 164 | - } catch (UnexpectedTypeException|NoSuchIndexException|NoSuchPropertyException $e) { |
|
| 164 | + } catch (UnexpectedTypeException | NoSuchIndexException | NoSuchPropertyException $e) { |
|
| 165 | 165 | return $object; |
| 166 | 166 | } |
| 167 | 167 | |
@@ -253,7 +253,7 @@ |
||
| 253 | 253 | /** |
| 254 | 254 | * @param string|string[] $iri |
| 255 | 255 | */ |
| 256 | - private function buildUpdate(string|array $iri, string $data, array $options): Update |
|
| 256 | + private function buildUpdate(string | array $iri, string $data, array $options): Update |
|
| 257 | 257 | { |
| 258 | 258 | return new Update($iri, $data, $options['private'] ?? false, $options['id'] ?? null, $options['type'] ?? null, $options['retry'] ?? null); |
| 259 | 259 | } |