Code Duplication    Length = 6-10 lines in 3 locations

src/voku/db/DB.php 3 locations

@@ 391-400 (lines=10) @@
388
389
    foreach ($referrer as $key => $ref) {
390
391
      if (
392
          $ref['function'] == 'query'
393
          ||
394
          $ref['function'] == 'qry'
395
      ) {
396
        $file = $referrer[$key]['file'];
397
        $line = $referrer[$key]['line'];
398
399
        break;
400
      }
401
402
      if ($ref['function'] == '_logQuery') {
403
        $file = $referrer[$key + 1]['file'];
@@ 402-407 (lines=6) @@
399
        break;
400
      }
401
402
      if ($ref['function'] == '_logQuery') {
403
        $file = $referrer[$key + 1]['file'];
404
        $line = $referrer[$key + 1]['line'];
405
406
        break;
407
      }
408
409
      if ($ref['function'] == 'execSQL') {
410
        $file = $referrer[$key]['file'];
@@ 409-414 (lines=6) @@
406
        break;
407
      }
408
409
      if ($ref['function'] == 'execSQL') {
410
        $file = $referrer[$key]['file'];
411
        $line = $referrer[$key]['line'];
412
413
        break;
414
      }
415
    }
416
417
    $return['file'] = $file;