Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 125-133 (lines=9) @@
122
    /**
123
     * {@inheritdoc}
124
     */
125
    public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = null)
126
    {
127
        $rows = [];
128
        while ($row = $this->fetch($fetchMode)) {
129
            $rows[] = $row;
130
        }
131
132
        return $rows;
133
    }
134
135
    /**
136
     * {@inheritdoc}

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

@@ 182-190 (lines=9) @@
179
    /**
180
     * {@inheritdoc}
181
     */
182
    public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = null)
183
    {
184
        $rows = [];
185
        while ($row = $this->fetch($fetchMode)) {
186
            $rows[] = $row;
187
        }
188
189
        return $rows;
190
    }
191
192
    /**
193
     * {@inheritdoc}