Passed
Push — main ( a33f85...42eea9 )
by Daniel
05:30
created
src/Serializer/Normalizer/PersistedNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         $this->propertyAccessor = PropertyAccess::createPropertyAccessor();
68 68
     }
69 69
 
70
-    public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null
70
+    public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null
71 71
     {
72 72
         $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id');
73 73
 
Please login to merge, or discard this patch.
src/DependencyInjection/Configuration.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
                         ->arrayNode('cookie')
57 57
                             ->addDefaultsIfNotSet()
58 58
                             ->children()
59
-                                 ->scalarNode('samesite')->defaultValue(Cookie::SAMESITE_STRICT)
59
+                                    ->scalarNode('samesite')->defaultValue(Cookie::SAMESITE_STRICT)
60 60
                                 ->end()
61 61
                             ->end()
62 62
                         ->end()
Please login to merge, or discard this patch.
src/DataProvider/StateProvider/PageDataMetadataStateProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
     }
30 30
 
31
-    public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null
31
+    public function provide(Operation $operation, array $uriVariables = [], array $context = []): object | array | null
32 32
     {
33 33
         if ($operation instanceof CollectionOperationInterface) {
34 34
             return $this->pageDataMetadataProvider->createAll();
Please login to merge, or discard this patch.
src/DataProvider/StateProvider/FormStateProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     {
32 32
     }
33 33
 
34
-    public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null
34
+    public function provide(Operation $operation, array $uriVariables = [], array $context = []): object | array | null
35 35
     {
36 36
         if ($operation instanceof CollectionOperationInterface) {
37 37
             return $this->defaultProvider->provide($operation->withProvider(CollectionProvider::class), $uriVariables, $context);
Please login to merge, or discard this patch.
src/AttributeReader/UploadableAttributeReader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         parent::__construct($managerRegistry);
35 35
     }
36 36
 
37
-    public function isConfigured(object|string $class): bool
37
+    public function isConfigured(object | string $class): bool
38 38
     {
39 39
         $isConfigured = parent::isConfigured($class);
40 40
         if (!$isConfigured || $this->imagineBundleEnabled || !is_a($class, ImagineFiltersInterface::class)) {
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         throw new BadMethodCallException(sprintf('LiipImagineBundle is not enabled/installed so you should not configure Imagine filters on %s', \is_string($class) ? $class : $class::class));
44 44
     }
45 45
 
46
-    public function getConfiguration(object|string $class): Uploadable
46
+    public function getConfiguration(object | string $class): Uploadable
47 47
     {
48 48
         $uploadable = $this->getClassAttributeConfiguration($class, Uploadable::class);
49 49
         if (!$uploadable instanceof Uploadable) {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     /**     *
84 84
      * @return UploadableField[]|\Generator
85 85
      */
86
-    public function getConfiguredProperties(object|string $data, bool $skipUploadableCheck = false): \Generator
86
+    public function getConfiguredProperties(object | string $data, bool $skipUploadableCheck = false): \Generator
87 87
     {
88 88
         if (!$skipUploadableCheck && !$this->isConfigured($data)) {
89 89
             throw new UnsupportedAnnotationException(sprintf('Cannot get field configuration for %s: is it not configured as Uploadable', \is_string($data) ? $data : $data::class));
Please login to merge, or discard this patch.
src/Serializer/Normalizer/UploadableNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
             && $this->annotationReader->isConfigured($data);
128 128
     }
129 129
 
130
-    public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null
130
+    public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null
131 131
     {
132 132
         $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id');
133 133
 
Please login to merge, or discard this patch.
src/Serializer/Normalizer/PageDataNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $this->propertyAccessor = PropertyAccess::createPropertyAccessor();
43 43
     }
44 44
 
45
-    public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null
45
+    public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null
46 46
     {
47 47
         $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id');
48 48
         $metadata = $this->pageDataMetadataFactory->create($object::class);
Please login to merge, or discard this patch.
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.