Code Duplication    Length = 3-6 lines in 2 locations

includes/installer/MssqlInstaller.php 1 location

@@ 433-438 (lines=6) @@
430
			$this->setVar( 'wgDBWindowsAuthentication', false );
431
		}
432
433
		if ( $this->getVar( '_CreateDBAccount' )
434
			&& $this->getVar( '_WebWindowsAuthentication' ) == 'sqlauth'
435
			&& strval( $this->getVar( 'wgDBpassword' ) ) == ''
436
		) {
437
			return Status::newFatal( 'config-db-password-empty', $this->getVar( 'wgDBuser' ) );
438
		}
439
440
		// Validate the create checkbox
441
		$canCreate = $this->canCreateAccounts();

includes/installer/DatabaseInstaller.php 1 location

@@ 678-680 (lines=3) @@
675
			$this->setVar( 'wgDBpassword', $this->getVar( '_InstallPassword' ) );
676
		}
677
678
		if ( $this->getVar( '_CreateDBAccount' ) && strval( $this->getVar( 'wgDBpassword' ) ) == '' ) {
679
			return Status::newFatal( 'config-db-password-empty', $this->getVar( 'wgDBuser' ) );
680
		}
681
682
		return Status::newGood();
683
	}