Passed
Push — master ( b99664...05f236 )
by Vlad
12:35
created
Category
src/Validator/UnionTypeValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
 
81 81
     private function formatUnionType(\ReflectionUnionType $type): string
82 82
     {
83
-        $types = array_map(fn (\ReflectionNamedType $type): string => $type->getName(), $type->getTypes());
83
+        $types = array_map(fn(\ReflectionNamedType $type): string => $type->getName(), $type->getTypes());
84 84
 
85 85
         return implode('|', $types);
86 86
     }
Please login to merge, or discard this patch.
src/SchemaValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 
75 75
         foreach ($metadata->getParameters() as $parameter) {
76 76
             $reflectionType   = $parameter->getType();
77
-            $rootPropertyName = ($attributes[$parameter->name] ?? null)?->getSerializedName() ?? $parameter->name;
77
+            $rootPropertyName = ($attributes[$parameter->name] ?? null) ? ->getSerializedName() ?? $parameter->name;
78 78
 
79 79
             if (null === $reflectionType) {
80 80
                 continue;
Please login to merge, or discard this patch.
config/service.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
23 23
 use function Symfony\Component\DependencyInjection\Loader\Configurator\tagged_iterator;
24 24
 
25
-return static function (ContainerConfigurator $di): void {
25
+return static function(ContainerConfigurator $di): void {
26 26
     $services = $di->services();
27 27
 
28 28
     $services
@@ -71,6 +71,6 @@  discard block
 block discarded – undo
71 71
                 service('schema.class_metadata_factory')
72 72
             ])
73 73
             ->tag('validator.constraint_validator')
74
-            ->alias(SchemaValidator::class,'schema.validator')
74
+            ->alias(SchemaValidator::class, 'schema.validator')
75 75
     ;
76 76
 };
77 77
\ No newline at end of file
Please login to merge, or discard this patch.