Everywhere yoda conditions are
This commit is contained in:
@ -27,11 +27,17 @@ class Payment_Status extends Enum {
|
||||
const __default = 'pending'; // phpcs:ignore
|
||||
|
||||
const PENDING = 'pending';
|
||||
|
||||
const COMPLETED = 'completed';
|
||||
|
||||
const REFUND = 'refunded';
|
||||
|
||||
const PARTIAL_REFUND = 'partially-refunded';
|
||||
|
||||
const PARTIAL = 'partially-paid';
|
||||
|
||||
const FAILED = 'failed';
|
||||
|
||||
const CANCELLED = 'cancelled';
|
||||
|
||||
/**
|
||||
|
@ -155,6 +155,7 @@ final class Payments_Table extends Table {
|
||||
// Return success/fail
|
||||
return $this->is_success($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fixes the datetime columns to accept null.
|
||||
*
|
||||
|
Reference in New Issue
Block a user