Code Duplication    Length = 11-11 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 1257-1267 (lines=11) @@
1254
    /**
1255
     * @return \Doctrine\DBAL\Driver\Connection|false
1256
     */
1257
    private function getDoctrinePDOConnection()
1258
    {
1259
        if ($this->doctrine_connection) {
1260
            $doctrineWrappedConnection = $this->doctrine_connection->getWrappedConnection();
1261
            if ($doctrineWrappedConnection instanceof \Doctrine\DBAL\Driver\PDOConnection) {
1262
                return $doctrineWrappedConnection;
1263
            }
1264
        }
1265
1266
        return false;
1267
    }
1268
1269
    /**
1270
     * Get errors from "$this->errors".
@@ 1552-1562 (lines=11) @@
1549
    /**
1550
     * @return bool
1551
     */
1552
    public function isDoctrinePDOConnection(): bool
1553
    {
1554
        if ($this->doctrine_connection) {
1555
            $doctrineWrappedConnection = $this->doctrine_connection->getWrappedConnection();
1556
            if ($doctrineWrappedConnection instanceof \Doctrine\DBAL\Driver\PDOConnection) {
1557
                return true;
1558
            }
1559
        }
1560
1561
        return false;
1562
    }
1563
1564
    /**
1565
     * Check if db-connection is ready.