@@ -24,9 +24,9 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | class VersionedDocumentationNormalizer implements NormalizerInterface |
| 26 | 26 | { |
| 27 | - private NormalizerInterface|DocumentationNormalizer $decorated; |
|
| 27 | + private NormalizerInterface | DocumentationNormalizer $decorated; |
|
| 28 | 28 | |
| 29 | - public function __construct(NormalizerInterface|DocumentationNormalizer $decorated) |
|
| 29 | + public function __construct(NormalizerInterface | DocumentationNormalizer $decorated) |
|
| 30 | 30 | { |
| 31 | 31 | $this->decorated = $decorated; |
| 32 | 32 | } |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | $uriVariables = $this->getOperationUriVariables($getCollectionOperation, $parameters, $resourceClass); |
| 134 | 134 | // Operation $operation, array $uriVariables = [], array $context = [] |
| 135 | 135 | $collectionData = $this->provider->provide($getCollectionOperation, $uriVariables, $collectionContext); |
| 136 | - } catch (InvalidIdentifierException|LegacyInvalidIdentifierException $e) { |
|
| 136 | + } catch (InvalidIdentifierException | LegacyInvalidIdentifierException $e) { |
|
| 137 | 137 | throw new NotFoundHttpException('Invalid identifier value or configuration.', $e); |
| 138 | 138 | } |
| 139 | 139 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | class PropagateUpdatesListener |
| 40 | 40 | { |
| 41 | 41 | private PropertyAccessor $propertyAccessor; |
| 42 | - private ObjectRepository|EntityRepository $collectionRepository; |
|
| 42 | + private ObjectRepository | EntityRepository $collectionRepository; |
|
| 43 | 43 | private \SplObjectStorage $updatedResources; |
| 44 | 44 | private array $pageDataPropertiesChanged = []; |
| 45 | 45 | private array $updatedCollectionClassToIriMapping = []; |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | |
| 202 | 202 | try { |
| 203 | 203 | $resourceClass = $this->resourceClassResolver->getResourceClass($resource); |
| 204 | - } catch (InvalidArgumentException|LegacyInvalidArgumentException) { |
|
| 204 | + } catch (InvalidArgumentException | LegacyInvalidArgumentException) { |
|
| 205 | 205 | return; |
| 206 | 206 | } |
| 207 | 207 | |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | try { |
| 211 | 211 | $collectionIri = $this->iriConverter->getIriFromResource($resource, UrlGeneratorInterface::ABS_PATH, (new GetCollection())->withClass($resourceClass)); |
| 212 | 212 | $this->updatedCollectionClassToIriMapping[$resourceClass] = $collectionIri; |
| 213 | - } catch (InvalidArgumentException|LegacyInvalidArgumentException) { |
|
| 213 | + } catch (InvalidArgumentException | LegacyInvalidArgumentException) { |
|
| 214 | 214 | } |
| 215 | 215 | } |
| 216 | 216 | |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | foreach ($metadata as $metadatum) { |
| 49 | 49 | $shortNames[] = $metadatum->getShortName(); |
| 50 | 50 | } |
| 51 | - } catch (LegacyResourceClassNotFoundException|ResourceClassNotFoundException $exception) { |
|
| 51 | + } catch (LegacyResourceClassNotFoundException | ResourceClassNotFoundException $exception) { |
|
| 52 | 52 | // the component may not be enabled |
| 53 | 53 | } |
| 54 | 54 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | { |
| 35 | 35 | try { |
| 36 | 36 | return $this->decorated->transform($value, $types, $context); |
| 37 | - } catch (InvalidUriVariableException|LegacyInvalidUriVariableException $exception) { |
|
| 37 | + } catch (InvalidUriVariableException | LegacyInvalidUriVariableException $exception) { |
|
| 38 | 38 | return $value; |
| 39 | 39 | } |
| 40 | 40 | } |