Code Duplication    Length = 9-9 lines in 2 locations

class/adodb.php 1 location

@@ 242-250 (lines=9) @@
239
	 */
240
	public function Connect ($forcenew = false) {
241
		// Mysqli doesn't allow port in host, grab it out and set
242
		if ('mysqli' == strtolower($this->__conn->databaseType)) {
243
			$ar = array();
244
			$i = preg_match('/:(\d+)$/', $this->aDbProfile['host'], $ar);
245
			if (0 < $i) {
246
				$this->__conn->port = $ar[1];
247
				$this->aDbProfile['host'] = preg_replace('/:(\d+)$/', ''
248
					, $this->aDbProfile['host']);
249
			}
250
		}
251
252
253
		try {

src/Fwlib/Bridge/Adodb.php 1 location

@@ 290-298 (lines=9) @@
287
288
        // @codeCoverageIgnoreStart
289
        // Mysqli doesn't allow port in host, grab it out and set
290
        if ('mysqli' == strtolower($this->conn->databaseType)) {
291
            $ar = [];
292
            $i = preg_match('/:(\d+)$/', $this->profile['host'], $ar);
293
            if (0 < $i) {
294
                $this->conn->port = $ar[1];
295
                $this->profile['host'] =
296
                    preg_replace('/:(\d+)$/', '', $this->profile['host']);
297
            }
298
        }
299
        // @codeCoverageIgnoreEnd
300
301