Code Duplication    Length = 17-17 lines in 2 locations

src/voku/db/Result.php 2 locations

@@ 447-463 (lines=17) @@
444
   *
445
   * @return array|false <p><strong>false</strong> on error</p>
446
   */
447
  public function fetchArray($reset = false)
448
  {
449
    if ($reset === true) {
450
      $this->reset();
451
    }
452
453
    $row = \mysqli_fetch_assoc($this->_result);
454
    if ($row) {
455
      return $this->cast($row);
456
    }
457
458
    if ($row === null) {
459
      return array();
460
    }
461
462
    return false;
463
  }
464
465
  /**
466
   * Fetch data as a key/value pair array.
@@ 513-529 (lines=17) @@
510
   *
511
   * @return Arrayy|false <p><strong>false</strong> on error</p>
512
   */
513
  public function fetchArrayy($reset = false)
514
  {
515
    if ($reset === true) {
516
      $this->reset();
517
    }
518
519
    $row = \mysqli_fetch_assoc($this->_result);
520
    if ($row) {
521
      return Arrayy::create($this->cast($row));
522
    }
523
524
    if ($row === null) {
525
      return Arrayy::create();
526
    }
527
528
    return false;
529
  }
530
531
  /**
532
   * Fetch a single column as string (or as 1-dimension array).