@@ -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; |
@@ -67,7 +67,7 @@ |
||
| 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 | |
@@ -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 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | // clear cache of anything containing this item |
| 68 | 68 | $this->collectItem($entity); |
| 69 | - } catch (OperationNotFoundException|InvalidArgumentException $e) { |
|
| 69 | + } catch (OperationNotFoundException | InvalidArgumentException $e) { |
|
| 70 | 70 | } |
| 71 | 71 | } |
| 72 | 72 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | try { |
| 76 | 76 | $iri = $this->iriConverter->getIriFromResource($item); |
| 77 | 77 | $this->collectIri($iri); |
| 78 | - } catch (InvalidArgumentException|RuntimeException $e) { |
|
| 78 | + } catch (InvalidArgumentException | RuntimeException $e) { |
|
| 79 | 79 | } |
| 80 | 80 | } |
| 81 | 81 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | { |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | - public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null |
|
| 31 | + public function provide(Operation $operation, array $uriVariables = [], array $context = []): object | array | null |
|
| 32 | 32 | { |
| 33 | 33 | if ($operation instanceof CollectionOperationInterface) { |
| 34 | 34 | return $this->pageDataMetadataProvider->createAll(); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | class PropagateUpdatesListener |
| 28 | 28 | { |
| 29 | 29 | private PropertyAccessor $propertyAccessor; |
| 30 | - private ObjectRepository|EntityRepository $collectionRepository; |
|
| 30 | + private ObjectRepository | EntityRepository $collectionRepository; |
|
| 31 | 31 | private \SplObjectStorage $updatedResources; |
| 32 | 32 | private array $pageDataPropertiesChanged = []; |
| 33 | 33 | private array $updatedCollectionClassToIriMapping = []; |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | { |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | - public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null |
|
| 34 | + public function provide(Operation $operation, array $uriVariables = [], array $context = []): object | array | null |
|
| 35 | 35 | { |
| 36 | 36 | if ($operation instanceof CollectionOperationInterface) { |
| 37 | 37 | return $this->defaultProvider->provide($operation->withProvider(CollectionProvider::class), $uriVariables, $context); |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | parent::__construct($managerRegistry); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - public function isConfigured(object|string $class): bool |
|
| 37 | + public function isConfigured(object | string $class): bool |
|
| 38 | 38 | { |
| 39 | 39 | $isConfigured = parent::isConfigured($class); |
| 40 | 40 | if (!$isConfigured || $this->imagineBundleEnabled || !is_a($class, ImagineFiltersInterface::class)) { |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | throw new BadMethodCallException(sprintf('LiipImagineBundle is not enabled/installed so you should not configure Imagine filters on %s', \is_string($class) ? $class : $class::class)); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - public function getConfiguration(object|string $class): Uploadable |
|
| 46 | + public function getConfiguration(object | string $class): Uploadable |
|
| 47 | 47 | { |
| 48 | 48 | $uploadable = $this->getClassAttributeConfiguration($class, Uploadable::class); |
| 49 | 49 | if (!$uploadable instanceof Uploadable) { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | /** * |
| 84 | 84 | * @return UploadableField[]|\Generator |
| 85 | 85 | */ |
| 86 | - public function getConfiguredProperties(object|string $data, bool $skipUploadableCheck = false): \Generator |
|
| 86 | + public function getConfiguredProperties(object | string $data, bool $skipUploadableCheck = false): \Generator |
|
| 87 | 87 | { |
| 88 | 88 | if (!$skipUploadableCheck && !$this->isConfigured($data)) { |
| 89 | 89 | throw new UnsupportedAnnotationException(sprintf('Cannot get field configuration for %s: is it not configured as Uploadable', \is_string($data) ? $data : $data::class)); |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | && $this->annotationReader->isConfigured($data); |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | - public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null |
|
| 130 | + public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null |
|
| 131 | 131 | { |
| 132 | 132 | $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id'); |
| 133 | 133 | |