Everywhere yoda conditions are
This commit is contained in:
@ -27,10 +27,15 @@ class Membership_Status extends Enum {
|
||||
const __default = 'pending'; // phpcs:ignore
|
||||
|
||||
const PENDING = 'pending';
|
||||
|
||||
const ACTIVE = 'active';
|
||||
|
||||
const TRIALING = 'trialing';
|
||||
|
||||
const EXPIRED = 'expired';
|
||||
|
||||
const ON_HOLD = 'on-hold';
|
||||
|
||||
const CANCELLED = 'cancelled';
|
||||
|
||||
/**
|
||||
|
@ -112,6 +112,7 @@ final class Memberships_Table extends Table {
|
||||
KEY status (status),
|
||||
KEY disabled (disabled)";
|
||||
}
|
||||
|
||||
/**
|
||||
* Fixes the datetime columns to accept null.
|
||||
*
|
||||
|
Reference in New Issue
Block a user