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

@ -192,7 +192,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
*/
public function is_migration() {
if ($this->is_migration === null) {
if (null === $this->is_migration) {
$this->is_migration = Migrator::is_legacy_network();
}
@ -785,7 +785,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
*/
public function handle_configuration(): void {
if ($_POST['submit'] === '1') {
if ('1' === $_POST['submit']) {
$this->integration->setup_constants($_POST);
$redirect_url = $this->get_next_section_link();