Code Duplication    Length = 4-6 lines in 2 locations

lib/Ajde/Query.php 2 locations

@@ 99-104 (lines=6) @@
96
        }
97
98
        // FROM
99
        if (empty($this->from)) {
100
            // TODO:
101
            throw new Ajde_Exception('FROM clause can not be empty in query');
102
        } else {
103
            $sql .= ' FROM '.implode(', ', $this->from);
104
        }
105
106
        // JOIN
107
        if (!empty($this->join)) {
@@ 127-130 (lines=4) @@
124
        }
125
126
        // GROUP BY
127
        if (!empty($this->groupBy)) {
128
            $sql .= ' GROUP BY';
129
            $sql .= ' '.implode(', ', $this->groupBy);
130
        }
131
132
        // HAVING
133
        if (!empty($this->having)) {