Code Duplication    Length = 3-6 lines in 2 locations

src/N98/Util/Console/Helper/DatabaseHelper.php 2 locations

@@ 89-94 (lines=6) @@
86
            $this->dbSettings['prefix'] = (string) $config['db']['table_prefix'];
87
        }
88
89
        if (
90
            isset($this->dbSettings['host'])
91
            && strpos($this->dbSettings['host'], ':') !== false
92
        ) {
93
            list($this->dbSettings['host'], $this->dbSettings['port']) = explode(':', $this->dbSettings['host']);
94
        }
95
96
        if (isset($this->dbSettings['comment'])) {
97
            unset($this->dbSettings['comment']);
@@ 130-132 (lines=3) @@
127
        if (strpos($this->dbSettings['host'], '/') !== false) {
128
            $this->dbSettings['unix_socket'] = $this->dbSettings['host'];
129
            unset($this->dbSettings['host']);
130
        } elseif (strpos($this->dbSettings['host'], ':') !== false) {
131
            list($this->dbSettings['host'], $this->dbSettings['port']) = explode(':', $this->dbSettings['host']);
132
        }
133
134
        $this->_connection = new PDO(
135
            $this->dsn(),