mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
codestyle
This commit is contained in:
parent
3d2d7255be
commit
be61fb957d
2 changed files with 5 additions and 3 deletions
|
@ -138,5 +138,4 @@ class WcGateway extends WcGatewayBase
|
||||||
$this->notice->displayMessage(AuthorizeOrderActionNotice::SUCCESS);
|
$this->notice->displayMessage(AuthorizeOrderActionNotice::SUCCESS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@ class OrderProcessor
|
||||||
PaymentsEndpoint $paymentsEndpoint,
|
PaymentsEndpoint $paymentsEndpoint,
|
||||||
OrderFactory $orderFactory
|
OrderFactory $orderFactory
|
||||||
) {
|
) {
|
||||||
|
|
||||||
$this->sessionHandler = $sessionHandler;
|
$this->sessionHandler = $sessionHandler;
|
||||||
$this->cartRepository = $cartRepository;
|
$this->cartRepository = $cartRepository;
|
||||||
$this->orderEndpoint = $orderEndpoint;
|
$this->orderEndpoint = $orderEndpoint;
|
||||||
|
@ -37,7 +38,7 @@ class OrderProcessor
|
||||||
$this->orderFactory = $orderFactory;
|
$this->orderFactory = $orderFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function process(\WC_Order $wcOrder, $woocommerce) : bool
|
public function process(\WC_Order $wcOrder, $woocommerce): bool
|
||||||
{
|
{
|
||||||
$order = $this->sessionHandler->order();
|
$order = $this->sessionHandler->order();
|
||||||
$wcOrder->update_meta_data(WcGateway::ORDER_ID_META_KEY, $order->id());
|
$wcOrder->update_meta_data(WcGateway::ORDER_ID_META_KEY, $order->id());
|
||||||
|
@ -76,7 +77,9 @@ class OrderProcessor
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function lastError() : string {
|
public function lastError(): string
|
||||||
|
{
|
||||||
|
|
||||||
return $this->lastError;
|
return $this->lastError;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue