Passed
Push — main ( a33f85...42eea9 )
by Daniel
05:30
created
src/AttributeReader/AttributeReaderInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  */
20 20
 interface AttributeReaderInterface
21 21
 {
22
-    public function getConfiguration(object|string $class);
22
+    public function getConfiguration(object | string $class);
23 23
 
24
-    public function isConfigured(object|string $class): bool;
24
+    public function isConfigured(object | string $class): bool;
25 25
 }
Please login to merge, or discard this patch.
src/AttributeReader/PublishableAttributeReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     /**
24 24
      * @throws \ReflectionException
25 25
      */
26
-    public function getConfiguration(object|string $class): Publishable
26
+    public function getConfiguration(object | string $class): Publishable
27 27
     {
28 28
         $publishable = $this->getClassAttributeConfiguration($class, Publishable::class);
29 29
         if (!$publishable instanceof Publishable) {
Please login to merge, or discard this patch.
src/AttributeReader/AttributeReader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
         $this->initRegistry($managerRegistry);
34 34
     }
35 35
 
36
-    abstract public function getConfiguration(object|string $class);
36
+    abstract public function getConfiguration(object | string $class);
37 37
 
38
-    public function isConfigured(object|string $class): bool
38
+    public function isConfigured(object | string $class): bool
39 39
     {
40 40
         try {
41 41
             $this->getConfiguration($class);
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         return true;
47 47
     }
48 48
 
49
-    private function resolveClassName(object|string|null $class): string
49
+    private function resolveClassName(object | string | null $class): string
50 50
     {
51 51
         $error = sprintf('$class passed to %s must be a valid class FQN or object.', __CLASS__);
52 52
         if (null === $class) {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     /**
68 68
      * @throws \ReflectionException
69 69
      */
70
-    protected function getClassAttributeConfiguration(object|string|null $class, string $annotationClass): ?object
70
+    protected function getClassAttributeConfiguration(object | string | null $class, string $annotationClass): ?object
71 71
     {
72 72
         $className = $this->resolveClassName($class);
73 73
         if (\array_key_exists($className, $this->configurationCache)) {
Please login to merge, or discard this patch.
src/DataProvider/StateProvider/UserStateProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
         $request = $this->requestStack->getCurrentRequest();
39 39
         if (!$request || !($id = $request->attributes->get('id'))) {
Please login to merge, or discard this patch.
src/DataProvider/StateProvider/RouteStateProvider.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
         $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);
Please login to merge, or discard this patch.
src/Action/Uploadable/UploadAction.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
 class UploadAction
30 30
 {
31
-    public function __construct(private NormalizerInterface|PublishableNormalizer $publishableNormalizer)
31
+    public function __construct(private NormalizerInterface | PublishableNormalizer $publishableNormalizer)
32 32
     {
33 33
     }
34 34
 
Please login to merge, or discard this patch.
src/Serializer/Normalizer/DataUriNormalizer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
63 63
         return $this->decorated->supportsDenormalization($data, $type, $format, $context);
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
     }
Please login to merge, or discard this patch.
src/Serializer/Normalizer/PublishableNormalizer.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/Serializer/Normalizer/CollectionNormalizer.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.