Passed
Push — main ( b2d943...872826 )
by Daniel
05:35
created
src/HttpCache/HttpCachePurger.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Mercure/MercureResourcePublisher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Mercure/MercureAuthorization.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ApiPlatform/Serializer/VersionedDocumentationNormalizer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/EventListener/Api/CollectionApiEventListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/EventListener/Doctrine/PropagateUpdatesListener.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/OpenApi/OpenApiFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/RamseyUuid/UuidUriVariableTransformer/UuidUriVariableTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.