Passed
Branch release/v3.0.0 (0e0f96)
by Anatoly
04:10
created
Category
src/OpenApi/OperationEnricher/EncodableResponseOperationEnricher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@
 block discarded – undo
52 52
      */
53 53
     public function enrichOperation(
54 54
         RouteInterface $route,
55
-        ReflectionClass|ReflectionMethod $requestHandler,
55
+        ReflectionClass | ReflectionMethod $requestHandler,
56 56
         array &$operation,
57 57
     ): void {
58
-        if (! $requestHandler instanceof ReflectionMethod) {
58
+        if (!$requestHandler instanceof ReflectionMethod) {
59 59
             return;
60 60
         }
61 61
 
Please login to merge, or discard this patch.
src/OpenApi/OperationEnricher/EmptyResponseOperationEnricher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@
 block discarded – undo
42 42
      */
43 43
     public function enrichOperation(
44 44
         RouteInterface $route,
45
-        ReflectionClass|ReflectionMethod $requestHandler,
45
+        ReflectionClass | ReflectionMethod $requestHandler,
46 46
         array &$operation,
47 47
     ): void {
48
-        if (! $requestHandler instanceof ReflectionMethod) {
48
+        if (!$requestHandler instanceof ReflectionMethod) {
49 49
             return;
50 50
         }
51 51
 
Please login to merge, or discard this patch.
src/OpenApi/OperationEnricher/RequestQueryOperationEnricher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@
 block discarded – undo
42 42
      */
43 43
     public function enrichOperation(
44 44
         RouteInterface $route,
45
-        ReflectionClass|ReflectionMethod $requestHandler,
45
+        ReflectionClass | ReflectionMethod $requestHandler,
46 46
         array &$operation,
47 47
     ): void {
48
-        if (! $requestHandler instanceof ReflectionMethod) {
48
+        if (!$requestHandler instanceof ReflectionMethod) {
49 49
             return;
50 50
         }
51 51
 
Please login to merge, or discard this patch.
src/OpenApi/OperationEnricher/RequestVariablesOperationEnricher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function enrichOperation(
48 48
         RouteInterface $route,
49
-        ReflectionClass|ReflectionMethod $requestHandler,
49
+        ReflectionClass | ReflectionMethod $requestHandler,
50 50
         array &$operation,
51 51
     ): void {
52 52
         $variables = RouteParser::parseRoute($route->getPath());
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      * @return array<array-key, mixed>|null
85 85
      */
86 86
     private function getRequestVariableSchema(
87
-        ReflectionClass|ReflectionMethod $requestHandler,
87
+        ReflectionClass | ReflectionMethod $requestHandler,
88 88
         string $variableName,
89 89
     ): ?array {
90 90
         if ($requestHandler instanceof ReflectionMethod) {
Please login to merge, or discard this patch.
src/OpenApi/OperationEnricher/RequestHeadersOperationEnricher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@
 block discarded – undo
43 43
      */
44 44
     public function enrichOperation(
45 45
         RouteInterface $route,
46
-        ReflectionClass|ReflectionMethod $requestHandler,
46
+        ReflectionClass | ReflectionMethod $requestHandler,
47 47
         array &$operation,
48 48
     ): void {
49
-        if (! $requestHandler instanceof ReflectionMethod) {
49
+        if (!$requestHandler instanceof ReflectionMethod) {
50 50
             return;
51 51
         }
52 52
 
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/RequestVariableParameterResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      */
65 65
     public function resolveParameter(ReflectionParameter $parameter, mixed $context): Generator
66 66
     {
67
-        if (! $context instanceof ServerRequestInterface) {
67
+        if (!$context instanceof ServerRequestInterface) {
68 68
             return;
69 69
         }
70 70
 
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/RequestCookieParameterResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 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
 
Please login to merge, or discard this patch.