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

@ -125,7 +125,7 @@ class Broadcast extends Post_Base_Model {
*/
public function get_migrated_from_id() {
if ($this->migrated_from_id === null) {
if (null === $this->migrated_from_id) {
$this->migrated_from_id = $this->get_meta('migrated_from_id', 0);
}
@ -176,7 +176,7 @@ class Broadcast extends Post_Base_Model {
*/
public function get_notice_type() {
if ($this->notice_type === null) {
if (null === $this->notice_type) {
$this->notice_type = $this->get_meta('notice_type', 'success');
}