Code Duplication    Length = 13-13 lines in 2 locations

src/voku/db/Result.php 2 locations

@@ 274-286 (lines=13) @@
271
   *
272
   * @return array|false false on error
273
   */
274
  public function fetchArray($reset = false)
275
  {
276
    if ($reset === true) {
277
      $this->reset();
278
    }
279
280
    $row = mysqli_fetch_assoc($this->_result);
281
    if ($row) {
282
      return $row;
283
    }
284
285
    return false;
286
  }
287
288
  /**
289
   * fetch as Arrayy-Object
@@ 295-307 (lines=13) @@
292
   *
293
   * @return Arrayy|false false on error
294
   */
295
  public function fetchArrayy($reset = false)
296
  {
297
    if ($reset === true) {
298
      $this->reset();
299
    }
300
301
    $row = mysqli_fetch_assoc($this->_result);
302
    if ($row) {
303
      return Arrayy::create($row);
304
    }
305
306
    return false;
307
  }
308
309
  /**
310
   * getAll