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

@ -537,7 +537,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page {
*/
$type = wu_request('type', 'product');
if ($type === 'product') {
if ('product' === $type) {
$product = wu_get_product(wu_request('product_id'));
if (empty($product)) {
@ -1270,7 +1270,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page {
static $payment;
if ($payment !== null) {
if (null !== $payment) {
return $payment;
}
@ -1292,6 +1292,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page {
return new Payment();
}
/**
* Payments have titles.
*