Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick477 committed May 8, 2019
1 parent dc5714a commit 8e31f3b
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 44 deletions.
20 changes: 0 additions & 20 deletions src/Action/ConvertPaymentAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ public function __construct(PaymentDescriptionProviderInterface $paymentDescript
$this->paymentDescriptionProvider = $paymentDescriptionProvider;
}

/**
* {@inheritdoc}
*
* @param Convert $request
*/
public function execute($request): void
{
RequestNotSupportedException::assertSupports($this, $request);
Expand Down Expand Up @@ -66,11 +61,6 @@ public function supports($request): bool
;
}

/**
* @param PaymentInterface $payment
*
* @return array
*/
private function getPaymentData(PaymentInterface $payment): array
{
$paymentData = [];
Expand All @@ -82,11 +72,6 @@ private function getPaymentData(PaymentInterface $payment): array
return $paymentData;
}

/**
* @param OrderInterface $order
*
* @return array
*/
private function getCustomerData(OrderInterface $order): array
{
$customerData = [];
Expand All @@ -109,11 +94,6 @@ private function getCustomerData(OrderInterface $order): array
return $customerData;
}

/**
* @param OrderInterface $order
*
* @return array
*/
private function getShoppingList(OrderInterface $order): array
{
$shoppingList = [];
Expand Down
15 changes: 0 additions & 15 deletions src/Action/NotifyAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ public function setApi($api): void
$this->przelewy24Bridge->setAuthorizationData($api['merchant_id'], $api['crc_key'], $api['environment']);
}

/**
* {@inheritdoc}
*
* @param Notify $request
*/
public function execute($request): void
{
RequestNotSupportedException::assertSupports($this, $request);
Expand Down Expand Up @@ -86,11 +81,6 @@ public function supports($request): bool
;
}

/**
* @param ArrayObject $details
*
* @return array
*/
private function getPosData(ArrayObject $details): array
{
$posData = [];
Expand All @@ -103,11 +93,6 @@ private function getPosData(ArrayObject $details): array
return $posData;
}

/**
* @param GetHttpRequest $request
*
* @return bool
*/
private function verifySign(GetHttpRequest $request): bool
{
$sign = $this->przelewy24Bridge->createSign([
Expand Down
5 changes: 0 additions & 5 deletions src/Action/StatusAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ public function setApi($api): void
$this->przelewy24Bridge->setAuthorizationData($api['merchant_id'], $api['crc_key'], $api['environment']);
}

/**
* {@inheritdoc}
*
* @param GetStatusInterface $request
*/
public function execute($request): void
{
RequestNotSupportedException::assertSupports($this, $request);
Expand Down
2 changes: 0 additions & 2 deletions src/Bridge/Przelewy24BridgeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ public function getTrnRegisterUrl(): string;

public function getTrnRequestUrl(string $token): string;

/** @return string */
public function getTrnVerifyUrl(): string;

/** @return string */
public function getHostForEnvironment(): string;

public function setAuthorizationData(
Expand Down
4 changes: 2 additions & 2 deletions tests/Behat/Context/Ui/Shop/Przelewy24CheckoutContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function iSignInToPrzelewy24AndPaySuccessfully(): void
public function iTryToPayAgainPrzelewy24Payment(): void
{
$this->przelewy24ApiMocker->mockApiSuccessfulVerifyTransaction(function () {
$this->orderDetails->pay();
$this->orderDetails->pay();
});
}

Expand All @@ -97,7 +97,7 @@ public function iTryToPayAgainPrzelewy24Payment(): void
public function iFailedMyPrzelewy24Payment(): void
{
$this->przelewy24ApiMocker->mockApiSuccessfulVerifyTransaction(function () {
$this->przelewy24CheckoutPage->failedPayment();
$this->przelewy24CheckoutPage->failedPayment();
});
}
}

0 comments on commit 8e31f3b

Please sign in to comment.