Code Duplication    Length = 7-7 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 516-522 (lines=7) @@
513
  private function _parseQueryParams($sql, array $params = array())
514
  {
515
    // is there anything to parse?
516
    if (
517
        strpos($sql, '?') === false
518
        ||
519
        count($params) === 0
520
    ) {
521
      return array('sql' => $sql, 'params' => $params);
522
    }
523
524
    $parseKey = md5(uniqid((string)mt_rand(), true));
525
    $sql = str_replace('?', $parseKey, $sql);
@@ 800-806 (lines=7) @@
797
  public function _parseQueryParamsByName($sql, array $params = array())
798
  {
799
    // is there anything to parse?
800
    if (
801
        strpos($sql, ':') === false
802
        ||
803
        count($params) === 0
804
    ) {
805
      return array('sql' => $sql, 'params' => $params);
806
    }
807
808
    $parseKey = md5(uniqid((string)mt_rand(), true));
809