Code Duplication    Length = 10-10 lines in 2 locations

lib/Doctrine/DBAL/Cache/ArrayStatement.php 1 location

@@ 138-147 (lines=10) @@
135
    /**
136
     * {@inheritdoc}
137
     */
138
    public function fetchColumn($columnIndex = 0)
139
    {
140
        $row = $this->fetch(PDO::FETCH_NUM);
141
        if (!isset($row[$columnIndex])) {
142
            // TODO: verify this is correct behavior
143
            return false;
144
        }
145
146
        return $row[$columnIndex];
147
    }
148
}
149

lib/Doctrine/DBAL/Cache/ResultCacheStatement.php 1 location

@@ 195-204 (lines=10) @@
192
    /**
193
     * {@inheritdoc}
194
     */
195
    public function fetchColumn($columnIndex = 0)
196
    {
197
        $row = $this->fetch(PDO::FETCH_NUM);
198
        if (!isset($row[$columnIndex])) {
199
            // TODO: verify this is correct behavior
200
            return false;
201
        }
202
203
        return $row[$columnIndex];
204
    }
205
206
    /**
207
     * Returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement