Code Duplication    Length = 12-13 lines in 3 locations

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

@@ 67-79 (lines=13) @@
64
    /**
65
     * {@inheritDoc}
66
     */
67
    public function havingRaw(/*# string */ $rawString, array $params = [])
68
    {
69
        $rawString = $this->positionedParam($rawString, $params);
70
        return $this->realWhere(
71
            $rawString,
72
            WhereInterface::NO_OPERATOR,
73
            WhereInterface::NO_VALUE,
74
            true,
75
            false,
76
            true,
77
            'HAVING'
78
        );
79
    }
80
81
    /**
82
     * Build HAVING

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

@@ 79-90 (lines=12) @@
76
    /**
77
     * {@inheritDoc}
78
     */
79
    public function whereRaw(/*# string */ $rawString, array $params = [])
80
    {
81
        $rawString = $this->positionedParam($rawString, $params);
82
        return $this->realWhere(
83
            $rawString,
84
            WhereInterface::NO_OPERATOR,
85
            WhereInterface::NO_VALUE,
86
            'AND',
87
            '',
88
            true
89
        );
90
    }
91
92
    /**
93
     * {@inheritDoc}
@@ 95-106 (lines=12) @@
92
    /**
93
     * {@inheritDoc}
94
     */
95
    public function orWhereRaw(/*# string */ $rawString, array $params = [])
96
    {
97
        $rawString = $this->positionedParam($rawString, $params);
98
        return $this->realWhere(
99
            $rawString,
100
            WhereInterface::NO_OPERATOR,
101
            WhereInterface::NO_VALUE,
102
            'OR',
103
            '',
104
            true
105
        );
106
    }
107
108
    /**
109
     * {@inheritDoc}