Code Duplication    Length = 13-13 lines in 2 locations

src/voku/db/Result.php 2 locations

@@ 362-374 (lines=13) @@
359
   *
360
   * @return array|false false on error
361
   */
362
  public function fetchArray($reset = false)
363
  {
364
    if ($reset === true) {
365
      $this->reset();
366
    }
367
368
    $row = \mysqli_fetch_assoc($this->_result);
369
    if ($row) {
370
      return $this->cast($row);
371
    }
372
373
    return false;
374
  }
375
376
  /**
377
   * Fetch as "Arrayy"-object.
@@ 383-395 (lines=13) @@
380
   *
381
   * @return Arrayy|false false on error
382
   */
383
  public function fetchArrayy($reset = false)
384
  {
385
    if ($reset === true) {
386
      $this->reset();
387
    }
388
389
    $row = \mysqli_fetch_assoc($this->_result);
390
    if ($row) {
391
      return Arrayy::create($this->cast($row));
392
    }
393
394
    return false;
395
  }
396
397
  /**
398
   * alias for "Result->fetchAll()"