Code Duplication    Length = 7-11 lines in 3 locations

includes/db/DatabaseMssql.php 1 location

@@ 1373-1382 (lines=10) @@
1370
	 * @return bool|ResultWrapper
1371
	 * @since 1.18
1372
	 */
1373
	public function dropTable( $tableName, $fName = __METHOD__ ) {
1374
		if ( !$this->tableExists( $tableName, $fName ) ) {
1375
			return false;
1376
		}
1377
1378
		// parent function incorrectly appends CASCADE, which we don't want
1379
		$sql = "DROP TABLE " . $this->tableName( $tableName );
1380
1381
		return $this->query( $sql, $fName );
1382
	}
1383
1384
	/**
1385
	 * Called in the installer and updater.

includes/db/Database.php 1 location

@@ 3640-3650 (lines=11) @@
3637
	 * @return bool|ResultWrapper
3638
	 * @since 1.18
3639
	 */
3640
	public function dropTable( $tableName, $fName = __METHOD__ ) {
3641
		if ( !$this->tableExists( $tableName, $fName ) ) {
3642
			return false;
3643
		}
3644
		$sql = "DROP TABLE " . $this->tableName( $tableName );
3645
		if ( $this->cascadingDeletes() ) {
3646
			$sql .= " CASCADE";
3647
		}
3648
3649
		return $this->query( $sql, $fName );
3650
	}
3651
3652
	/**
3653
	 * Get search engine class. All subclasses of this need to implement this

includes/db/DatabaseMysqlBase.php 1 location

@@ 1262-1268 (lines=7) @@
1259
	 * @param string $fName
1260
	 * @return bool|ResultWrapper
1261
	 */
1262
	public function dropTable( $tableName, $fName = __METHOD__ ) {
1263
		if ( !$this->tableExists( $tableName, $fName ) ) {
1264
			return false;
1265
		}
1266
1267
		return $this->query( "DROP TABLE IF EXISTS " . $this->tableName( $tableName ), $fName );
1268
	}
1269
1270
	/**
1271
	 * @return array