Skip to content

Commit

Permalink
BP-2132 - BP-2813 - fix PHP_MD
Browse files Browse the repository at this point in the history
  • Loading branch information
LucianTuriacArnia committed Aug 15, 2023
1 parent b70fae1 commit 9296707
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Controller/Payconiq/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ class Process extends \Buckaroo\Magento2\Controller\Redirect\Process
* @param RequestPushFactory $requestPushFactory
* @param SearchCriteriaBuilder $searchCriteriaBuilder
* @param TransactionRepositoryInterface $transactionRepository
*
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(
Context $context,
Expand Down
5 changes: 4 additions & 1 deletion Controller/Redirect/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
use Magento\Sales\Api\Data\OrderPaymentInterface;
use Magento\Sales\Model\Order;

/**
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class Process extends Action
{
private const GENERAL_ERROR_MESSAGE = 'Unfortunately an error occurred while processing your payment. ' .
Expand Down Expand Up @@ -521,7 +524,7 @@ private function processPendingRedirect($statusCode): ResponseInterface
*
* @return void
*/
public function addErrorMessage(string $message): void
public function addErrorMessage($message): void
{
$this->messageManager->addErrorMessage($message);
}
Expand Down

0 comments on commit 9296707

Please sign in to comment.