@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $this->propertyAccessor = PropertyAccess::createPropertyAccessor(); |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null |
|
| 51 | + public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null |
|
| 52 | 52 | { |
| 53 | 53 | $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id'); |
| 54 | 54 | $context[MetadataNormalizer::METADATA_CONTEXT]['persisted'] = $this->entityManager->contains($object); |
@@ -101,7 +101,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | * @param AbstractUser $object |
| 82 | 82 | * @param mixed|null $format |
| 83 | 83 | */ |
| 84 | - public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null |
|
| 84 | + public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null |
|
| 85 | 85 | { |
| 86 | 86 | $context[self::ALREADY_CALLED] = true; |
| 87 | 87 | |
@@ -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)); |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | return true; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - private function resolveClassName(object|string|null $class): string |
|
| 55 | + private function resolveClassName(object | string | null $class): string |
|
| 56 | 56 | { |
| 57 | 57 | $error = sprintf('$class passed to %s must be a valid class FQN or object.', __CLASS__); |
| 58 | 58 | if (null === $class) { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | /** |
| 74 | 74 | * @throws \ReflectionException |
| 75 | 75 | */ |
| 76 | - protected function getClassAnnotationConfiguration(object|string|null $class, string $annotationClass): ?object |
|
| 76 | + protected function getClassAnnotationConfiguration(object | string | null $class, string $annotationClass): ?object |
|
| 77 | 77 | { |
| 78 | 78 | $className = $this->resolveClassName($class); |
| 79 | 79 | if (\array_key_exists($className, $this->configurationCache)) { |