More yoda conditions

This commit is contained in:
David Stone
2025-02-09 12:30:02 -07:00
parent d9122a410d
commit 0a4c81c105
97 changed files with 323 additions and 289 deletions

View File

@ -1073,7 +1073,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page {
*/
public function get_object() {
if ($this->object !== null) {
if (null !== $this->object) {
return $this->object;
}
@ -1156,7 +1156,7 @@ class Membership_Edit_Admin_Page extends Edit_Admin_Page {
'updated' => 1,
];
if ($this->edit === false) {
if (false === $this->edit) {
$array_params['id'] = $object->get_id();
}