Passed
Push — main ( 76dcd0...9f35d8 )
by Anatoly
10:37 queued 04:41
created
src/Hydrator.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,7 @@
 block discarded – undo
92 92
         $this->context = $context;
93 93
 
94 94
         $this->annotationReader = PHP_MAJOR_VERSION >= 8 ?
95
-            new BuiltinAnnotationReader() :
96
-            new NullAnnotationReader();
95
+            new BuiltinAnnotationReader() : new NullAnnotationReader();
97 96
 
98 97
         $this->addTypeConverter(...self::defaultTypeConverters());
99 98
     }
Please login to merge, or discard this patch.
src/AnnotationReader/DoctrineAnnotationReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         // @codeCoverageIgnoreStart
59 59
         if (!class_exists(AnnotationReader::class)) {
60 60
             throw new LogicException(sprintf(
61
-                'The annotation reader {%s} requires the doctrine/annotations package, ' .
61
+                'The annotation reader {%s} requires the doctrine/annotations package, '.
62 62
                 'run the command `composer require doctrine/annotations` to resolve it.',
63 63
                 __CLASS__,
64 64
             ));
Please login to merge, or discard this patch.
src/Exception/InvalidObjectException.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@  discard block
 block discarded – undo
51 51
         $holder = $type->getHolder();
52 52
 
53 53
         return $holder instanceof ReflectionProperty ?
54
-            self::unsupportedPropertyType($type, $holder) :
55
-            self::unsupportedParameterType($type, $holder);
54
+            self::unsupportedPropertyType($type, $holder) : self::unsupportedParameterType($type, $holder);
56 55
     }
57 56
 
58 57
     /**
@@ -82,8 +81,7 @@  discard block
 block discarded – undo
82 81
         $holder = $parameter->getDeclaringFunction();
83 82
 
84 83
         return $holder instanceof ReflectionMethod ?
85
-            self::unsupportedMethodParameterType($type, $parameter, $holder) :
86
-            self::unsupportedFunctionParameterType($type, $parameter, $holder);
84
+            self::unsupportedMethodParameterType($type, $parameter, $holder) : self::unsupportedFunctionParameterType($type, $parameter, $holder);
87 85
     }
88 86
 
89 87
     /**
Please login to merge, or discard this patch.
tests/HydratorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -854,7 +854,7 @@  discard block
 block discarded – undo
854 854
     {
855 855
         $object = new class {
856 856
             /** @Subtype(BuiltinType::BOOL, allowsNull=true) */
857
-            #[Subtype(BuiltinType::BOOL, allowsNull: true)]
857
+            #[Subtype(BuiltinType::BOOL, allowsNull : true)]
858 858
             public array $value;
859 859
         };
860 860
 
@@ -1239,7 +1239,7 @@  discard block
 block discarded – undo
1239 1239
     {
1240 1240
         $object = new class {
1241 1241
             /** @Subtype(BuiltinType::BOOL, allowsNull=true) */
1242
-            #[Subtype(BuiltinType::BOOL, allowsNull: true)]
1242
+            #[Subtype(BuiltinType::BOOL, allowsNull : true)]
1243 1243
             public Stub\Collection $value;
1244 1244
         };
1245 1245
 
Please login to merge, or discard this patch.