@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | // clear cache of anything containing this item |
| 72 | 72 | $this->collectItem($entity); |
| 73 | - } catch (OperationNotFoundException|InvalidArgumentException|LegacyOperationNotFoundException|LegacyInvalidArgumentException) { |
|
| 73 | + } catch (OperationNotFoundException | InvalidArgumentException | LegacyOperationNotFoundException | LegacyInvalidArgumentException) { |
|
| 74 | 74 | } |
| 75 | 75 | } |
| 76 | 76 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | try { |
| 80 | 80 | $iri = $this->iriConverter->getIriFromResource($item); |
| 81 | 81 | $this->collectIri($iri); |
| 82 | - } catch (InvalidArgumentException|RuntimeException|LegacyInvalidArgumentException|LegacyRuntimeException) { |
|
| 82 | + } catch (InvalidArgumentException | RuntimeException | LegacyInvalidArgumentException | LegacyRuntimeException) { |
|
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | |
| 150 | 150 | try { |
| 151 | 151 | $options = $this->resourceMetadataFactory->create($resourceClass)->getOperation()->getMercure() ?? false; |
| 152 | - } catch (OperationNotFoundException|LegacyOperationNotFoundException) { |
|
| 152 | + } catch (OperationNotFoundException | LegacyOperationNotFoundException) { |
|
| 153 | 153 | return null; |
| 154 | 154 | } |
| 155 | 155 | |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | } else { |
| 264 | 264 | try { |
| 265 | 265 | $data = $this->getObjectData($object, $iri); |
| 266 | - } catch (InvalidArgumentException|LegacyInvalidArgumentException) { |
|
| 266 | + } catch (InvalidArgumentException | LegacyInvalidArgumentException) { |
|
| 267 | 267 | // the object may have been deleted at the database level with delete cascades... |
| 268 | 268 | $type = 'delete'; |
| 269 | 269 | $data = $getDeletedObjectData(); |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | /** |
| 309 | 309 | * @param string|string[] $iri |
| 310 | 310 | */ |
| 311 | - private function buildUpdate(string|array $iri, string $data, array $options): Update |
|
| 311 | + private function buildUpdate(string | array $iri, string $data, array $options): Update |
|
| 312 | 312 | { |
| 313 | 313 | return new Update($iri, $data, $options['private'] ?? false, $options['id'] ?? null, $options['type'] ?? null, $options['retry'] ?? null); |
| 314 | 314 | } |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | |
| 98 | 98 | try { |
| 99 | 99 | $operation = $resourceMetadataCollection->getOperation(forceCollection: false, httpOperation: true); |
| 100 | - } catch (OperationNotFoundException|LegacyOperationNotFoundException) { |
|
| 100 | + } catch (OperationNotFoundException | LegacyOperationNotFoundException) { |
|
| 101 | 101 | return null; |
| 102 | 102 | } |
| 103 | 103 | |
@@ -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 | } |