Code Duplication    Length = 17-17 lines in 2 locations

src/voku/db/Result.php 2 locations

@@ 507-523 (lines=17) @@
504
   *
505
   * @return array|false <p><strong>false</strong> on error</p>
506
   */
507
  public function fetchArray(bool $reset = false)
508
  {
509
    if ($reset === true) {
510
      $this->reset();
511
    }
512
513
    $row = \mysqli_fetch_assoc($this->_result);
514
    if ($row) {
515
      return $this->cast($row);
516
    }
517
518
    if ($row === null) {
519
      return [];
520
    }
521
522
    return false;
523
  }
524
525
  /**
526
   * Fetch data as a key/value pair array.
@@ 573-589 (lines=17) @@
570
   *
571
   * @return Arrayy|false <p><strong>false</strong> on error</p>
572
   */
573
  public function fetchArrayy(bool $reset = false)
574
  {
575
    if ($reset === true) {
576
      $this->reset();
577
    }
578
579
    $row = \mysqli_fetch_assoc($this->_result);
580
    if ($row) {
581
      return Arrayy::create($this->cast($row));
582
    }
583
584
    if ($row === null) {
585
      return Arrayy::create();
586
    }
587
588
    return false;
589
  }
590
591
  /**
592
   * Fetches a row or a single column within a row. Returns null if there are