Code Duplication    Length = 10-13 lines in 2 locations

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

@@ 61-70 (lines=10) @@
58
     * @return $this
59
     * @access protected
60
     */
61
    protected function realGroupBy($col, /*# bool */ $rawMode = false)
62
    {
63
        if (is_array($col)) {
64
            $this->multipleGroupBy($col);
65
        } else {
66
            $clause = &$this->getClause('GROUP BY');
67
            $clause[] = [$col, $this->isRaw($col, $rawMode)];
68
        }
69
        return $this;
70
    }
71
72
    /**
73
     * Multitple groupbys

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

@@ 72-84 (lines=13) @@
69
     * @return $this
70
     * @access protected
71
     */
72
    protected function realOrderBy(
73
        $col,
74
        /*# sting */ $suffix = 'ASC',
75
        /*# bool */ $rawMode = false
76
    ) {
77
        if (is_array($col)) {
78
            $this->multipleOrderBy($col, $suffix);
79
        } else {
80
            $clause = &$this->getClause('ORDER BY');
81
            $clause[] = [$col, $suffix, $this->isRaw($col, $rawMode)];
82
        }
83
        return $this;
84
    }
85
86
    /**
87
     * Multitple orderbys