Code Duplication    Length = 7-7 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 513-519 (lines=7) @@
510
  private function _parseQueryParams($sql, array $params)
511
  {
512
    // is there anything to parse?
513
    if (
514
        strpos($sql, '?') === false
515
        ||
516
        count($params) === 0
517
    ) {
518
      return array('sql' => $sql, 'params' => $params);
519
    }
520
521
    $parseKey = md5(uniqid((string)mt_rand(), true));
522
    $sql = str_replace('?', $parseKey, $sql);
@@ 788-794 (lines=7) @@
785
  public function _parseQueryParamsByName($sql, array $params = array())
786
  {
787
    // is there anything to parse?
788
    if (
789
        strpos($sql, ':') === false
790
        ||
791
        count($params) === 0
792
    ) {
793
      return array('sql' => $sql, 'params' => $params);
794
    }
795
796
    $parseKey = md5(uniqid((string)mt_rand(), true));
797