@@ -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 | |
@@ -42,7 +42,7 @@ |
||
| 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($object::class); |