Code Duplication    Length = 4-4 lines in 2 locations

src/Drivers/SimpleConnection.php 1 location

@@ 109-112 (lines=4) @@
106
107
        $resource = $this->getConnection()->query($query);
108
109
        if ($this->getConnection()->error) {
110
            throw new DatabaseException('['.$this->getConnection()->errno.'] '.
111
                $this->getConnection()->error.' [ '.$query.']');
112
        }
113
114
        if ($resource instanceof \mysqli_result) {
115
            $result = array();

src/Drivers/Mysqli/Connection.php 1 location

@@ 132-135 (lines=4) @@
129
130
        $resource = $this->getConnection()->query($query);
131
132
        if ($this->getConnection()->error) {
133
            throw new DatabaseException('['.$this->getConnection()->errno.'] '.
134
                $this->getConnection()->error.' [ '.$query.']');
135
        }
136
137
        return new ResultSet($this, $resource);
138
    }