Code Duplication    Length = 8-8 lines in 3 locations

src/Phossa2/Query/Traits/Clause/HavingTrait.php 1 location

@@ 59-66 (lines=8) @@
56
    /**
57
     * {@inheritDoc}
58
     */
59
    public function havingRaw(/*# string */ $rawString)
60
    {
61
        if (func_num_args() > 1) {
62
            $rawString = $this->getBuilder()->raw($rawString, func_get_arg(1));
63
        }
64
        return $this->realWhere($rawString, WhereInterface::NO_OPERATOR,
65
            WhereInterface::NO_VALUE, true, false, true, 'HAVING');
66
    }
67
68
    /**
69
     * Build HAVING

src/Phossa2/Query/Traits/Clause/WhereTrait.php 2 locations

@@ 67-74 (lines=8) @@
64
    /**
65
     * {@inheritDoc}
66
     */
67
    public function whereRaw(/*# string */ $rawString)
68
    {
69
        if (func_num_args() > 1) {
70
            $rawString = $this->getBuilder()->raw($rawString, func_get_arg(1));
71
        }
72
        return $this->realWhere($rawString, WhereInterface::NO_OPERATOR,
73
            WhereInterface::NO_VALUE, 'AND', '', true);
74
    }
75
76
    /**
77
     * {@inheritDoc}
@@ 79-86 (lines=8) @@
76
    /**
77
     * {@inheritDoc}
78
     */
79
    public function orWhereRaw(/*# string */ $rawString)
80
    {
81
        if (func_num_args() > 1) {
82
            $rawString = $this->getBuilder()->raw($rawString, func_get_arg(1));
83
        }
84
        return $this->realWhere($rawString, WhereInterface::NO_OPERATOR,
85
            WhereInterface::NO_VALUE, 'OR', '', true);
86
    }
87
88
    /**
89
     * {@inheritDoc}