Everywhere yoda conditions are

This commit is contained in:
David Stone
2025-02-09 00:20:10 -07:00
parent d74f6d1a53
commit be0ab98895
213 changed files with 691 additions and 412 deletions

View File

@ -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';
/**

View File

@ -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.
*