Code Duplication    Length = 6-8 lines in 3 locations

lib/private/DB/OracleConnection.php 2 locations

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

lib/private/DB/Connection.php 1 location

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