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

@ -62,7 +62,7 @@ abstract class Edit_Admin_Page extends Base_Admin_Page {
*/
public function get_errors() {
if ($this->errors === null) {
if (null === $this->errors) {
$this->errors = new \WP_Error();
}
@ -850,7 +850,7 @@ abstract class Edit_Admin_Page extends Base_Admin_Page {
'updated' => 1,
];
if ($this->edit === false) {
if (false === $this->edit) {
$array_params['id'] = $object->get_id();
$array_params['wu-new-model'] = true;