Code Duplication    Length = 11-14 lines in 2 locations

src/Gaufrette/Adapter/DoctrineDbal.php 2 locations

@@ 44-54 (lines=11) @@
41
    /**
42
     * {@inheritdoc}
43
     */
44
    public function keys()
45
    {
46
        $keys = array();
47
        $stmt = $this->connection->executeQuery(sprintf(
48
            'SELECT %s FROM %s',
49
            $this->getQuotedColumn('key'),
50
            $this->getQuotedTable()
51
        ));
52
53
        return $stmt->fetchAll(\PDO::FETCH_COLUMN);
54
    }
55
56
    /**
57
     * {@inheritdoc}
@@ 152-165 (lines=14) @@
149
        return false;
150
    }
151
152
    private function getColumnValue($key, $column)
153
    {
154
        $value = $this->connection->fetchColumn(
155
            sprintf(
156
                'SELECT %s FROM %s WHERE %s = :key',
157
                $this->getQuotedColumn($column),
158
                $this->getQuotedTable(),
159
                $this->getQuotedColumn('key')
160
            ),
161
            array('key' => $key)
162
        );
163
164
        return $value;
165
    }
166
167
    /**
168
     * {@inheritdoc}