Code Duplication    Length = 7-7 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 528-534 (lines=7) @@
525
  private function _parseQueryParams(string $sql, array $params = []): array
526
  {
527
    // is there anything to parse?
528
    if (
529
        \strpos($sql, '?') === false
530
        ||
531
        \count($params) === 0
532
    ) {
533
      return ['sql' => $sql, 'params' => $params];
534
    }
535
536
    $parseKey = \md5(\uniqid((string)\mt_rand(), true));
537
    $sql = \str_replace('?', $parseKey, $sql);
@@ 812-818 (lines=7) @@
809
  public function _parseQueryParamsByName(string $sql, array $params = []): array
810
  {
811
    // is there anything to parse?
812
    if (
813
        \strpos($sql, ':') === false
814
        ||
815
        \count($params) === 0
816
    ) {
817
      return ['sql' => $sql, 'params' => $params];
818
    }
819
820
    $parseKey = \md5(\uniqid((string)\mt_rand(), true));
821