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

@@ 3281-3291 (lines=11) @@
3278
	 * @return bool|ResultWrapper
3279
	 * @since 1.18
3280
	 */
3281
	public function dropTable( $tableName, $fName = __METHOD__ ) {
3282
		if ( !$this->tableExists( $tableName, $fName ) ) {
3283
			return false;
3284
		}
3285
		$sql = "DROP TABLE " . $this->tableName( $tableName );
3286
		if ( $this->cascadingDeletes() ) {
3287
			$sql .= " CASCADE";
3288
		}
3289
3290
		return $this->query( $sql, $fName );
3291
	}
3292
3293
	/**
3294
	 * Get search engine class. All subclasses of this need to implement this

includes/db/DatabaseMysqlBase.php 1 location

@@ 1280-1286 (lines=7) @@
1277
	 * @param string $fName
1278
	 * @return bool|ResultWrapper
1279
	 */
1280
	public function dropTable( $tableName, $fName = __METHOD__ ) {
1281
		if ( !$this->tableExists( $tableName, $fName ) ) {
1282
			return false;
1283
		}
1284
1285
		return $this->query( "DROP TABLE IF EXISTS " . $this->tableName( $tableName ), $fName );
1286
	}
1287
1288
	/**
1289
	 * @return array