From c146a99cbfcfc8c117deee2141c6a51cc1f8efd7 Mon Sep 17 00:00:00 2001 From: romalytvynenko Date: Thu, 6 Jun 2024 07:52:47 +0000 Subject: [PATCH] Fix styling --- src/Support/OperationExtensions/RequestBodyExtension.php | 1 + .../RulesExtractor/ValidateCallExtractor.php | 1 - .../RulesExtractor/ValidationNodesResult.php | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Support/OperationExtensions/RequestBodyExtension.php b/src/Support/OperationExtensions/RequestBodyExtension.php index 9ee85334..d1bd2363 100644 --- a/src/Support/OperationExtensions/RequestBodyExtension.php +++ b/src/Support/OperationExtensions/RequestBodyExtension.php @@ -79,6 +79,7 @@ public function handle(Operation $operation, RouteInfo $routeInfo) $operation->addParameters($queryParams); if (in_array($operation->method, static::HTTP_METHODS_WITHOUT_REQUEST_BODY)) { $operation->addParameters($bodyParams); + return; } diff --git a/src/Support/OperationExtensions/RulesExtractor/ValidateCallExtractor.php b/src/Support/OperationExtensions/RulesExtractor/ValidateCallExtractor.php index 46fd90a5..a85349a3 100644 --- a/src/Support/OperationExtensions/RulesExtractor/ValidateCallExtractor.php +++ b/src/Support/OperationExtensions/RulesExtractor/ValidateCallExtractor.php @@ -2,7 +2,6 @@ namespace Dedoc\Scramble\Support\OperationExtensions\RulesExtractor; -use Dedoc\Scramble\Support\PhpDoc; use Illuminate\Http\Request; use PhpParser\Node; use PhpParser\NodeFinder; diff --git a/src/Support/OperationExtensions/RulesExtractor/ValidationNodesResult.php b/src/Support/OperationExtensions/RulesExtractor/ValidationNodesResult.php index 9d83f4a1..e20eea35 100644 --- a/src/Support/OperationExtensions/RulesExtractor/ValidationNodesResult.php +++ b/src/Support/OperationExtensions/RulesExtractor/ValidationNodesResult.php @@ -7,6 +7,6 @@ class ValidationNodesResult public function __construct( public $node, public ?string $schemaName, - ) - {} + ) { + } }