More yoda conditions
This commit is contained in:
1 parent
d9122a410d
commit
0a4c81c105
97 files changed
+323
-289
No files matched your search
@@ -1182,7 +1182,7 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
$new_fields = [];
|
||||
|
||||
foreach ($fields as $index => $field) {
|
||||
if ($field['type'] === 'header') {
|
||||
if ('header' === $field['type']) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -1491,7 +1491,7 @@ class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
*/
|
||||
public function get_object() {
|
||||
|
||||
if ($this->object !== null) {
|
||||
if (null !== $this->object) {
|
||||
return $this->object;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user