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; }