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

@ -547,7 +547,7 @@ class Customer extends Base_Model {
*/
public function get_extra_information() {
if ($this->extra_information === null) {
if (null === $this->extra_information) {
$extra_information = (array) $this->get_meta('wu_customer_extra_information');
$this->extra_information = array_filter($extra_information);