Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/SprykerSdk/AsyncApi/Code/Builder/AsyncApiBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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`.',
);
}
}
Expand Down Expand Up @@ -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;
}

Expand Down
Loading