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);
@@ 796-802 (lines=7) @@
793
  public function _parseQueryParamsByName($sql, array $params = array())
794
  {
795
    // is there anything to parse?
796
    if (
797
        strpos($sql, ':') === false
798
        ||
799
        count($params) === 0
800
    ) {
801
      return array('sql' => $sql, 'params' => $params);
802
    }
803
804
    $parseKey = md5(uniqid((string)mt_rand(), true));
805