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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ class OrderProcessor
|
|||
PaymentsEndpoint $paymentsEndpoint,
|
||||
OrderFactory $orderFactory
|
||||
) {
|
||||
|
||||
$this->sessionHandler = $sessionHandler;
|
||||
$this->cartRepository = $cartRepository;
|
||||
$this->orderEndpoint = $orderEndpoint;
|
||||
|
@ -37,7 +38,7 @@ class OrderProcessor
|
|||
$this->orderFactory = $orderFactory;
|
||||
}
|
||||
|
||||
public function process(\WC_Order $wcOrder, $woocommerce) : bool
|
||||
public function process(\WC_Order $wcOrder, $woocommerce): bool
|
||||
{
|
||||
$order = $this->sessionHandler->order();
|
||||
$wcOrder->update_meta_data(WcGateway::ORDER_ID_META_KEY, $order->id());
|
||||
|
@ -76,7 +77,9 @@ class OrderProcessor
|
|||
return true;
|
||||
}
|
||||
|
||||
public function lastError() : string {
|
||||
public function lastError(): string
|
||||
{
|
||||
|
||||
return $this->lastError;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue