@@ -129,7 +129,7 @@ |
||
| 129 | 129 | $this->annotationReader->isConfigured($data); |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | - public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null |
|
| 132 | + public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null |
|
| 133 | 133 | { |
| 134 | 134 | $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id'); |
| 135 | 135 | |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | /** |
| 70 | 70 | * {@inheritdoc} |
| 71 | 71 | */ |
| 72 | - public function decode(TokenInterface $token): array|false |
|
| 72 | + public function decode(TokenInterface $token): array | false |
|
| 73 | 73 | { |
| 74 | 74 | // parse will be used for old symfony where PreAuthenticationJWTUserToken exists |
| 75 | 75 | try { |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | public string $message = 'Your new email address should be different.'; |
| 24 | 24 | public string $uniqueMessage = 'Someone else is already registered with that email address.'; |
| 25 | 25 | |
| 26 | - public function getTargets(): string|array |
|
| 26 | + public function getTargets(): string | array |
|
| 27 | 27 | { |
| 28 | 28 | return self::CLASS_CONSTRAINT; |
| 29 | 29 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public string $message = 'The IRI `{{ iri }}` is not permitted to be added to the collection `{{ reference }}`. Allowed IRIs: {{ allowed }}'; |
| 25 | 25 | public string $restrictedMessage = 'The IRI `{{ iri }}` must be specifically allowed within the collection {{ reference }}'; |
| 26 | 26 | |
| 27 | - public function getTargets(): string|array |
|
| 27 | + public function getTargets(): string | array |
|
| 28 | 28 | { |
| 29 | 29 | return self::CLASS_CONSTRAINT; |
| 30 | 30 | } |
@@ -153,8 +153,7 @@ |
||
| 153 | 153 | $request = $requestStack->getMainRequest(); |
| 154 | 154 | |
| 155 | 155 | $path = ($request && $this->redirectPathQueryKey) ? |
| 156 | - $request->query->get($this->redirectPathQueryKey, $this->defaultRedirectPath) : |
|
| 157 | - $this->defaultRedirectPath; |
|
| 156 | + $request->query->get($this->redirectPathQueryKey, $this->defaultRedirectPath) : $this->defaultRedirectPath; |
|
| 158 | 157 | |
| 159 | 158 | if (null === $path) { |
| 160 | 159 | throw new UnexpectedValueException(sprintf('The querystring key `%s` could not be found in the request to generate a token URL', $this->redirectPathQueryKey)); |
@@ -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 : \get_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 : \get_class($data))); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | final class TimestampedAttributeReader extends AttributeReader |
| 22 | 22 | { |
| 23 | - public function getConfiguration(object|string $class): Timestamped |
|
| 23 | + public function getConfiguration(object | string $class): Timestamped |
|
| 24 | 24 | { |
| 25 | 25 | $timestamped = $this->getClassAttributeConfiguration($class, Timestamped::class); |
| 26 | 26 | if (!$timestamped instanceof Timestamped) { |
@@ -21,11 +21,11 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | interface UploadableAttributeReaderInterface extends AttributeReaderInterface |
| 23 | 23 | { |
| 24 | - public function getConfiguration(object|string $class): Uploadable; |
|
| 24 | + public function getConfiguration(object | string $class): Uploadable; |
|
| 25 | 25 | |
| 26 | 26 | public function isFieldConfigured(\ReflectionProperty $property): bool; |
| 27 | 27 | |
| 28 | 28 | public function getPropertyConfiguration(\ReflectionProperty $property): UploadableField; |
| 29 | 29 | |
| 30 | - public function getConfiguredProperties(object|string $data, bool $skipUploadableCheck = false): iterable; |
|
| 30 | + public function getConfiguredProperties(object | string $data, bool $skipUploadableCheck = false): iterable; |
|
| 31 | 31 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | interface AttributeReaderInterface |
| 21 | 21 | { |
| 22 | - public function getConfiguration(object|string $class); |
|
| 22 | + public function getConfiguration(object | string $class); |
|
| 23 | 23 | |
| 24 | - public function isConfigured(object|string $class): bool; |
|
| 24 | + public function isConfigured(object | string $class): bool; |
|
| 25 | 25 | } |