Code Duplication    Length = 17-17 lines in 2 locations

src/voku/db/Result.php 2 locations

@@ 415-431 (lines=17) @@
412
   *
413
   * @return array|false <p><strong>false</strong> on error</p>
414
   */
415
  public function fetchArray($reset = false)
416
  {
417
    if ($reset === true) {
418
      $this->reset();
419
    }
420
421
    $row = \mysqli_fetch_assoc($this->_result);
422
    if ($row) {
423
      return $this->cast($row);
424
    }
425
426
    if ($row === null) {
427
      return array();
428
    }
429
430
    return false;
431
  }
432
433
  /**
434
   * Fetch data as a key/value pair array.
@@ 481-497 (lines=17) @@
478
   *
479
   * @return Arrayy|false <p><strong>false</strong> on error</p>
480
   */
481
  public function fetchArrayy($reset = false)
482
  {
483
    if ($reset === true) {
484
      $this->reset();
485
    }
486
487
    $row = \mysqli_fetch_assoc($this->_result);
488
    if ($row) {
489
      return Arrayy::create($this->cast($row));
490
    }
491
492
    if ($row === null) {
493
      return Arrayy::create();
494
    }
495
496
    return false;
497
  }
498
499
  /**
500
   * Fetch a single column as string (or as 1-dimension array).