Code Duplication    Length = 17-17 lines in 2 locations

src/voku/db/Result.php 2 locations

@@ 303-319 (lines=17) @@
300
   *
301
   * @return array|false <p><strong>false</strong> on error</p>
302
   */
303
  public function fetchArray($reset = false)
304
  {
305
    if ($reset === true) {
306
      $this->reset();
307
    }
308
309
    $row = \mysqli_fetch_assoc($this->_result);
310
    if ($row) {
311
      return $this->cast($row);
312
    }
313
314
    if ($row === null) {
315
      return array();
316
    }
317
318
    return false;
319
  }
320
321
  /**
322
   * Fetch data as a key/value pair array.
@@ 369-385 (lines=17) @@
366
   *
367
   * @return Arrayy|false <p><strong>false</strong> on error</p>
368
   */
369
  public function fetchArrayy($reset = false)
370
  {
371
    if ($reset === true) {
372
      $this->reset();
373
    }
374
375
    $row = \mysqli_fetch_assoc($this->_result);
376
    if ($row) {
377
      return Arrayy::create($this->cast($row));
378
    }
379
380
    if ($row === null) {
381
      return Arrayy::create();
382
    }
383
384
    return false;
385
  }
386
387
  /**
388
   * Fetch a single column as string (or as 1-dimension array).