Code Duplication    Length = 17-17 lines in 2 locations

src/voku/db/Result.php 2 locations

@@ 372-388 (lines=17) @@
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
    if ($row === null) {
384
      return array();
385
    }
386
387
    return false;
388
  }
389
390
  /**
391
   * Fetch as "Arrayy"-object.
@@ 397-413 (lines=17) @@
394
   *
395
   * @return Arrayy|false <p><strong>false</strong> on error</p>
396
   */
397
  public function fetchArrayy($reset = false)
398
  {
399
    if ($reset === true) {
400
      $this->reset();
401
    }
402
403
    $row = \mysqli_fetch_assoc($this->_result);
404
    if ($row) {
405
      return Arrayy::create($this->cast($row));
406
    }
407
408
    if ($row === null) {
409
      return Arrayy::create();
410
    }
411
412
    return false;
413
  }
414
415
  /**
416
   * alias for "Result->fetchAll()"