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

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