mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Fix psalm
This commit is contained in:
parent
00d9cf52a4
commit
5ff6c7be71
1 changed files with 0 additions and 2 deletions
|
@ -320,7 +320,6 @@ class OrderProcessor {
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
private function order_is_ready_for_process( Order $order ): bool {
|
private function order_is_ready_for_process( Order $order ): bool {
|
||||||
|
|
||||||
if ( $order->status()->is( OrderStatus::APPROVED ) || $order->status()->is( OrderStatus::CREATED ) ) {
|
if ( $order->status()->is( OrderStatus::APPROVED ) || $order->status()->is( OrderStatus::CREATED ) ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -330,7 +329,6 @@ class OrderProcessor {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert( $payment_source instanceof PaymentSource );
|
|
||||||
if ( $payment_source->name() !== 'card' ) {
|
if ( $payment_source->name() !== 'card' ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue