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

@@ 358-364 (lines=7) @@
355
	 *
356
	 * @param string $table table name without the prefix
357
	 */
358
	public function dropTable($table) {
359
		$table = $this->tablePrefix . trim($table);
360
		$schema = $this->getSchemaManager();
361
		if($schema->tablesExist([$table])) {
362
			$schema->dropTable($table);
363
		}
364
	}
365
366
	/**
367
	 * Check if a table exists