Code Duplication    Length = 5-5 lines in 2 locations

lib/private/Setup/OCI.php 2 locations

@@ 72-76 (lines=5) @@
69
		$e_port = (int)$this->dbPort;
70
		$e_dbname = addslashes($this->dbName);
71
		//check if the database user has admin right
72
		if ($e_host == '') {
73
			$easy_connect_string = $e_dbname; // use dbname as easy connect name
74
		} else {
75
			$easy_connect_string = '//'.$e_host.(!empty($e_port) ? ":{$e_port}" : "").'/'.$e_dbname;
76
		}
77
		$this->logger->debug('connect string: ' . $easy_connect_string, ['app' => 'setup.oci']);
78
		$connection = @oci_connect($this->dbUser, $this->dbPassword, $easy_connect_string);
79
		if(!$connection) {
@@ 149-153 (lines=5) @@
146
		$e_host = addslashes($this->dbHost);
147
		$e_dbname = addslashes($this->dbName);
148
149
		if ($e_host == '') {
150
			$easy_connect_string = $e_dbname; // use dbname as easy connect name
151
		} else {
152
			$easy_connect_string = '//' . $e_host . (!empty($e_port) ? ":{$e_port}" : "") . '/' . $e_dbname;
153
		}
154
		$connection = @oci_connect($this->dbUser, $this->dbPassword, $easy_connect_string);
155
		if(!$connection) {
156
			throw new \OC\DatabaseSetupException($this->trans->t('Oracle username and/or password not valid'),