Code Duplication    Length = 13-13 lines in 2 locations

src/voku/db/Result.php 2 locations

@@ 372-384 (lines=13) @@
369
   *
370
   * @return array|false <p><strong>false</strong> on error</p>
371
   */
372
  public function fetchArray($reset = false)
373
  {
374
    if ($reset === true) {
375
      $this->reset();
376
    }
377
378
    $row = \mysqli_fetch_assoc($this->_result);
379
    if ($row) {
380
      return $this->cast($row);
381
    }
382
383
    return false;
384
  }
385
386
  /**
387
   * Fetch as "Arrayy"-object.
@@ 393-405 (lines=13) @@
390
   *
391
   * @return Arrayy|false <p><strong>false</strong> on error</p>
392
   */
393
  public function fetchArrayy($reset = false)
394
  {
395
    if ($reset === true) {
396
      $this->reset();
397
    }
398
399
    $row = \mysqli_fetch_assoc($this->_result);
400
    if ($row) {
401
      return Arrayy::create($this->cast($row));
402
    }
403
404
    return false;
405
  }
406
407
  /**
408
   * alias for "Result->fetchAll()"