Code Duplication    Length = 8-8 lines in 2 locations

core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php 2 locations

@@ 789-796 (lines=8) @@
786
     *
787
     * @return $this This QueryBuilder instance.
788
     */
789
    public function where($predicates)
790
    {
791
        if ( ! (func_num_args() == 1 && $predicates instanceof CompositeExpression)) {
792
            $predicates = new CompositeExpression(CompositeExpression::TYPE_AND, func_get_args());
793
        }
794
795
        return $this->add('where', $predicates);
796
    }
797
798
    /**
799
     * Adds one or more restrictions to the query results, forming a logical
@@ 975-982 (lines=8) @@
972
     *
973
     * @return $this This QueryBuilder instance.
974
     */
975
    public function having($having)
976
    {
977
        if ( ! (func_num_args() == 1 && $having instanceof CompositeExpression)) {
978
            $having = new CompositeExpression(CompositeExpression::TYPE_AND, func_get_args());
979
        }
980
981
        return $this->add('having', $having);
982
    }
983
984
    /**
985
     * Adds a restriction over the groups of the query, forming a logical