Code Duplication    Length = 4-4 lines in 2 locations

src/Mouf/Database/TDBM/QueryFactory/FindObjectsQueryFactory.php 1 location

@@ 39-42 (lines=4) @@
36
37
        $countSql = 'SELECT COUNT(DISTINCT '.implode(', ', $pkColumnNames).') FROM MAGICJOIN('.$this->mainTable.')';
38
39
        if (!empty($this->filterString)) {
40
            $sql .= ' WHERE '.$this->filterString;
41
            $countSql .= ' WHERE '.$this->filterString;
42
        }
43
44
        if (!empty($orderString)) {
45
            $sql .= ' ORDER BY '.$orderString;

src/Mouf/Database/TDBM/QueryFactory/FindObjectsFromSqlQueryFactory.php 1 location

@@ 83-86 (lines=4) @@
80
            $sql .= $joinSql;
81
        }
82
83
        if (!empty($this->filterString)) {
84
            $sql .= ' WHERE '.$this->filterString;
85
            $countSql .= ' WHERE '.$this->filterString;
86
        }
87
88
        if (!empty($orderString)) {
89
            $sql .= ' ORDER BY '.$orderString;