Code Duplication    Length = 7-7 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 509-515 (lines=7) @@
506
  private function _parseQueryParams($sql, array $params)
507
  {
508
    // is there anything to parse?
509
    if (
510
        strpos($sql, '?') === false
511
        ||
512
        count($params) === 0
513
    ) {
514
      return array('sql' => $sql, 'params' => $params);
515
    }
516
517
    $parseKey = md5(uniqid((string)mt_rand(), true));
518
    $sql = str_replace('?', $parseKey, $sql);
@@ 784-790 (lines=7) @@
781
  public function _parseQueryParamsByName($sql, array $params = array())
782
  {
783
    // is there anything to parse?
784
    if (
785
        strpos($sql, ':') === false
786
        ||
787
        count($params) === 0
788
    ) {
789
      return array('sql' => $sql, 'params' => $params);
790
    }
791
792
    $parseKey = md5(uniqid((string)mt_rand(), true));
793