Code Duplication    Length = 13-13 lines in 2 locations

src/voku/db/Result.php 2 locations

@@ 336-348 (lines=13) @@
333
   *
334
   * @return array|false false on error
335
   */
336
  public function fetchArray($reset = false)
337
  {
338
    if ($reset === true) {
339
      $this->reset();
340
    }
341
342
    $row = mysqli_fetch_assoc($this->_result);
343
    if ($row) {
344
      return $this->cast($row);
345
    }
346
347
    return false;
348
  }
349
350
  /**
351
   * fetch as Arrayy-Object
@@ 357-369 (lines=13) @@
354
   *
355
   * @return Arrayy|false false on error
356
   */
357
  public function fetchArrayy($reset = false)
358
  {
359
    if ($reset === true) {
360
      $this->reset();
361
    }
362
363
    $row = mysqli_fetch_assoc($this->_result);
364
    if ($row) {
365
      return Arrayy::create($this->cast($row));
366
    }
367
368
    return false;
369
  }
370
371
  /**
372
   * getAll