Code Duplication    Length = 8-8 lines in 2 locations

includes/installer/MssqlInstaller.php 1 location

@@ 717-724 (lines=8) @@
714
	 *
715
	 * @return array
716
	 */
717
	public function getSchemaVars() {
718
		return [
719
			'wgDBname' => $this->getVar( 'wgDBname' ),
720
			'wgDBmwschema' => $this->getVar( 'wgDBmwschema' ),
721
			'wgDBuser' => $this->getVar( 'wgDBuser' ),
722
			'wgDBpassword' => $this->getVar( 'wgDBpassword' ),
723
		];
724
	}
725
726
	public function getLocalSettings() {
727
		$schema = LocalSettingsGenerator::escapePhpString( $this->getVar( 'wgDBmwschema' ) );

includes/installer/MysqlInstaller.php 1 location

@@ 638-645 (lines=8) @@
635
	 *
636
	 * @return array
637
	 */
638
	public function getSchemaVars() {
639
		return [
640
			'wgDBTableOptions' => $this->getTableOptions(),
641
			'wgDBname' => $this->getVar( 'wgDBname' ),
642
			'wgDBuser' => $this->getVar( 'wgDBuser' ),
643
			'wgDBpassword' => $this->getVar( 'wgDBpassword' ),
644
		];
645
	}
646
647
	public function getLocalSettings() {
648
		$dbmysql5 = wfBoolToStr( $this->getVar( 'wgDBmysql5', true ) );