Code Duplication    Length = 9-10 lines in 2 locations

src/Repository/AnyDataset.php 1 location

@@ 284-293 (lines=10) @@
281
     * @param string $fieldName
282
     * @return array
283
     */
284
    public function getArray($itf, $fieldName)
285
    {
286
        $it = $this->getIterator($itf);
287
        $result = array();
288
        while ($it->hasNext()) {
289
            $sr = $it->moveNext();
290
            $result [] = $sr->getField($fieldName);
291
        }
292
        return $result;
293
    }
294
295
    /**
296
     *

src/Repository/DBDataset.php 1 location

@@ 205-213 (lines=9) @@
202
     * @param string $fieldName
203
     * @return Resource
204
     */
205
    public function getArrayField(IteratorInterface $it, $fieldPK, $fieldName)
206
    {
207
        $result = array();
208
        while ($it->hasNext()) {
209
            $registro = $it->moveNext();
210
            $result [$registro->getField($fieldPK)] = $registro->getField($fieldName);
211
        }
212
        return $result;
213
    }
214
215
    /**
216
     * @access public