Passed
Branch release/v3.0.0 (0e0f96)
by Anatoly
04:22
created
Category
src/OpenApi/Command/RouterOpenApiBuildDocumentCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             $this->openApiDocumentManager->buildDocument(
46 46
                 array_filter(
47 47
                     $this->router->getRoutes(),
48
-                    static function (RouteInterface $route): bool {
48
+                    static function(RouteInterface $route): bool {
49 49
                         return $route->isApiRoute();
50 50
                     },
51 51
                 )
Please login to merge, or discard this patch.
src/OpenApi/OpenApiDocumentManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
             }
138 138
         }
139 139
 
140
-        array_walk_recursive($operation, function (mixed &$value) use ($requestHandler): void {
140
+        array_walk_recursive($operation, function(mixed &$value) use ($requestHandler): void {
141 141
             if ($value instanceof Type) {
142 142
                 $value = $this->openApiPhpTypeSchemaResolverManager->resolvePhpTypeSchema($value, $requestHandler);
143 143
             }
Please login to merge, or discard this patch.
src/ParameterResolver/RequestHeaderParameterResolver.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
      */
59 59
     public function resolveParameter(ReflectionParameter $parameter, mixed $context): Generator
60 60
     {
61
-        if (! $context instanceof ServerRequestInterface) {
61
+        if (!$context instanceof ServerRequestInterface) {
62 62
             return;
63 63
         }
64 64
 
Please login to merge, or discard this patch.
src/ParameterResolver/RequestQueryParameterResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function resolveParameter(ReflectionParameter $parameter, mixed $context): Generator
61 61
     {
62
-        if (! $context instanceof ServerRequestInterface) {
62
+        if (!$context instanceof ServerRequestInterface) {
63 63
             return;
64 64
         }
65 65
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         }
71 71
 
72 72
         $type = $parameter->getType();
73
-        if (! $type instanceof ReflectionNamedType || $type->isBuiltin()) {
73
+        if (!$type instanceof ReflectionNamedType || $type->isBuiltin()) {
74 74
             throw new InvalidArgumentException(sprintf(
75 75
                 'To use the #[RequestQuery] annotation, the parameter "%s" must be typed with an object.',
76 76
                 ParameterResolverChain::stringifyParameter($parameter),
Please login to merge, or discard this patch.
src/ParameterResolver/DependencyInjectionParameterResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     public function resolveParameter(ReflectionParameter $parameter, mixed $context): Generator
39 39
     {
40 40
         $type = $parameter->getType();
41
-        if (! $type instanceof ReflectionNamedType || $type->isBuiltin()) {
41
+        if (!$type instanceof ReflectionNamedType || $type->isBuiltin()) {
42 42
             return;
43 43
         }
44 44
 
Please login to merge, or discard this patch.
src/ParameterResolver/RequestBodyParameterResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function resolveParameter(ReflectionParameter $parameter, mixed $context): Generator
61 61
     {
62
-        if (! $context instanceof ServerRequestInterface) {
62
+        if (!$context instanceof ServerRequestInterface) {
63 63
             return;
64 64
         }
65 65
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         }
71 71
 
72 72
         $type = $parameter->getType();
73
-        if (! $type instanceof ReflectionNamedType || $type->isBuiltin()) {
73
+        if (!$type instanceof ReflectionNamedType || $type->isBuiltin()) {
74 74
             throw new InvalidArgumentException(sprintf(
75 75
                 'To use the #[RequestBody] annotation, the parameter "%s" must be typed with an object.',
76 76
                 ParameterResolverChain::stringifyParameter($parameter),
Please login to merge, or discard this patch.
src/Helper/ClassFinder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $filenames = [];
61 61
         foreach ($files as $file) {
62 62
             $filename = $file->getRealPath();
63
-            (static function (string $filename): void {
63
+            (static function(string $filename): void {
64 64
                 require_once $filename;
65 65
             })($filename);
66 66
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
         /** @var string $filename */
94 94
         $filename = realpath($filename);
95
-        (static function (string $filename): void {
95
+        (static function(string $filename): void {
96 96
             require_once $filename;
97 97
         })($filename);
98 98
 
Please login to merge, or discard this patch.
src/Middleware/StringTrimmingMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
      */
73 73
     private static function trimArray(array $array, Closure $trimmer): array
74 74
     {
75
-        $walker = static function (mixed &$value) use ($trimmer): void {
75
+        $walker = static function(mixed &$value) use ($trimmer): void {
76 76
             if (is_string($value)) {
77 77
                 $value = $trimmer($value);
78 78
             }
Please login to merge, or discard this patch.
src/Validation/Constraint/ArgumentConstraintValidator.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
     public function validate(mixed $value, Constraint $constraint): void
33 33
     {
34
-        if (! $constraint instanceof ArgumentConstraint) {
34
+        if (!$constraint instanceof ArgumentConstraint) {
35 35
             throw new UnexpectedTypeException($constraint, ArgumentConstraint::class);
36 36
         }
37 37
 
Please login to merge, or discard this patch.