@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $this->pageDataMetadataProvider = $pageDataMetadataProvider; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null |
|
| 37 | + public function provide(Operation $operation, array $uriVariables = [], array $context = []): object | array | null |
|
| 38 | 38 | { |
| 39 | 39 | if ($operation instanceof CollectionOperationInterface) { |
| 40 | 40 | return $this->pageDataMetadataProvider->createAll(); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | $this->requestStack = $requestStack; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null |
|
| 36 | + public function provide(Operation $operation, array $uriVariables = [], array $context = []): object | array | null |
|
| 37 | 37 | { |
| 38 | 38 | // is_a($resourceClass, AbstractUser::class, true) |
| 39 | 39 | $request = $this->requestStack->getCurrentRequest(); |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $this->defaultProvider = $defaultProvider; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null |
|
| 37 | + public function provide(Operation $operation, array $uriVariables = [], array $context = []): object | array | null |
|
| 38 | 38 | { |
| 39 | 39 | if ($operation instanceof CollectionOperationInterface) { |
| 40 | 40 | return $this->defaultProvider->provide($operation->withProvider(CollectionProvider::class), $uriVariables, $context); |
@@ -37,9 +37,9 @@ discard block |
||
| 37 | 37 | use DenormalizerAwareTrait; |
| 38 | 38 | use NormalizerAwareTrait; |
| 39 | 39 | |
| 40 | - private NormalizerInterface|SymfonyDataUriNormalizer $decorated; |
|
| 40 | + private NormalizerInterface | SymfonyDataUriNormalizer $decorated; |
|
| 41 | 41 | |
| 42 | - public function __construct(NormalizerInterface|SymfonyDataUriNormalizer $decorated) |
|
| 42 | + public function __construct(NormalizerInterface | SymfonyDataUriNormalizer $decorated) |
|
| 43 | 43 | { |
| 44 | 44 | $this->decorated = $decorated; |
| 45 | 45 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | return $this->decorated->supportsDenormalization($data, $type, $format); |
| 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 | return $this->decorated->normalize($object, $format, $context); |
| 69 | 69 | } |
@@ -25,9 +25,9 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | class VersionedDocumentationNormalizer implements NormalizerInterface, CacheableSupportsMethodInterface |
| 27 | 27 | { |
| 28 | - private NormalizerInterface|DocumentationNormalizer $decorated; |
|
| 28 | + private NormalizerInterface | DocumentationNormalizer $decorated; |
|
| 29 | 29 | |
| 30 | - public function __construct(NormalizerInterface|DocumentationNormalizer $decorated) |
|
| 30 | + public function __construct(NormalizerInterface | DocumentationNormalizer $decorated) |
|
| 31 | 31 | { |
| 32 | 32 | $this->decorated = $decorated; |
| 33 | 33 | } |
@@ -51,8 +51,8 @@ discard block |
||
| 51 | 51 | private array $tags = []; |
| 52 | 52 | private array $pageDataPropertiesChanged = []; |
| 53 | 53 | private PropertyAccessor $propertyAccessor; |
| 54 | - private ObjectRepository|EntityRepository $collectionRepository; |
|
| 55 | - private ObjectRepository|EntityRepository $positionRepository; |
|
| 54 | + private ObjectRepository | EntityRepository $collectionRepository; |
|
| 55 | + private ObjectRepository | EntityRepository $positionRepository; |
|
| 56 | 56 | |
| 57 | 57 | public function __construct(PurgerInterface $purger, IriConverterInterface $iriConverter, ResourceClassResolverInterface $resourceClassResolver, ManagerRegistry $entityManager) |
| 58 | 58 | { |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | if (!\in_array($resourceIri, $this->resourceIris, true)) { |
| 188 | 188 | $this->resourceIris[] = $resourceIri; |
| 189 | 189 | } |
| 190 | - } catch (OperationNotFoundException|InvalidArgumentException $e) { |
|
| 190 | + } catch (OperationNotFoundException | InvalidArgumentException $e) { |
|
| 191 | 191 | } |
| 192 | 192 | } |
| 193 | 193 | |