Code Duplication    Length = 6-8 lines in 3 locations

lib/private/DB/OracleConnection.php 2 locations

@@ 84-91 (lines=8) @@
81
	 *
82
	 * @param string $table table name without the prefix
83
	 */
84
	public function dropTable($table) {
85
		$table = $this->tablePrefix . trim($table);
86
		$table = $this->quoteIdentifier($table);
87
		$schema = $this->getSchemaManager();
88
		if($schema->tablesExist([$table])) {
89
			$schema->dropTable($table);
90
		}
91
	}
92
93
	/**
94
	 * Check if a table exists
@@ 99-104 (lines=6) @@
96
	 * @param string $table table name without the prefix
97
	 * @return bool
98
	 */
99
	public function tableExists($table){
100
		$table = $this->tablePrefix . trim($table);
101
		$table = $this->quoteIdentifier($table);
102
		$schema = $this->getSchemaManager();
103
		return $schema->tablesExist([$table]);
104
	}
105
}
106

lib/private/DB/Connection.php 1 location

@@ 372-378 (lines=7) @@
369
	 *
370
	 * @param string $table table name without the prefix
371
	 */
372
	public function dropTable($table) {
373
		$table = $this->tablePrefix . trim($table);
374
		$schema = $this->getSchemaManager();
375
		if($schema->tablesExist([$table])) {
376
			$schema->dropTable($table);
377
		}
378
	}
379
380
	/**
381
	 * Check if a table exists