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

@ -240,7 +240,7 @@ abstract class Base_Model implements \JsonSerializable {
/*
* Keeps the original.
*/
if ($this->_original === null) {
if (null === $this->_original) {
$original = get_object_vars($this);
unset($original['_original']);