From 0ceda880a241b5c68158faf8953efa34f7401fc8 Mon Sep 17 00:00:00 2001 From: vol4onok Date: Mon, 17 Aug 2026 10:50:11 +0300 Subject: [PATCH] Fixed rector --- src/SprykerSdk/AsyncApi/Code/Builder/AsyncApiBuilder.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SprykerSdk/AsyncApi/Code/Builder/AsyncApiBuilder.php b/src/SprykerSdk/AsyncApi/Code/Builder/AsyncApiBuilder.php index 662e7aab..815dd33c 100644 --- a/src/SprykerSdk/AsyncApi/Code/Builder/AsyncApiBuilder.php +++ b/src/SprykerSdk/AsyncApi/Code/Builder/AsyncApiBuilder.php @@ -128,19 +128,19 @@ protected function validateRequest(AsyncApiRequestTransfer $asyncApiRequestTrans { if ($this->isPropertyOptionEmpty($asyncApiRequestTransfer) && $this->isTransferOptionEmpty($asyncApiRequestTransfer)) { throw new InvalidConfigurationException( - sprintf('You either need to pass properties with the `-P` option or you need to pass a transfer class name for reverse engineering with the `-t` option.'), + 'You either need to pass properties with the `-P` option or you need to pass a transfer class name for reverse engineering with the `-t` option.', ); } if (!$this->isPropertyOptionEmpty($asyncApiRequestTransfer) && !$this->isTransferOptionEmpty($asyncApiRequestTransfer)) { throw new InvalidConfigurationException( - sprintf('You can only pass one of the options `-P` or `-t`, not both.'), + 'You can only pass one of the options `-P` or `-t`, not both.', ); } if ($this->isModuleNameEmpty($asyncApiRequestTransfer)) { throw new InvalidConfigurationException( - sprintf('You must pass a module name in the `x-spryker` extension with the option `-m`.'), + 'You must pass a module name in the `x-spryker` extension with the option `-m`.', ); } } @@ -295,7 +295,7 @@ protected function addMessageToChannelType(array $asyncApi, string $messageName, $asyncApi['channels'][$channelName][$channelType]['message'], ]; - if ($this->messageNameExists($messageName, $messages) === true) { + if ($this->messageNameExists($messageName, $messages)) { return $asyncApi; }