Code Duplication    Length = 7-7 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 526-532 (lines=7) @@
523
  private function _parseQueryParams(string $sql, array $params = []): array
524
  {
525
    // is there anything to parse?
526
    if (
527
        \strpos($sql, '?') === false
528
        ||
529
        \count($params) === 0
530
    ) {
531
      return ['sql' => $sql, 'params' => $params];
532
    }
533
534
    static $PARSE_KEY_CACHE = null;
535
    if ($PARSE_KEY_CACHE === null) {
@@ 814-820 (lines=7) @@
811
  public function _parseQueryParamsByName(string $sql, array $params = []): array
812
  {
813
    // is there anything to parse?
814
    if (
815
        \strpos($sql, ':') === false
816
        ||
817
        \count($params) === 0
818
    ) {
819
      return ['sql' => $sql, 'params' => $params];
820
    }
821
822
    static $PARSE_KEY_CACHE = null;
823
    if ($PARSE_KEY_CACHE === null) {