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

@@ 76-79 (lines=4) @@
73
74
        $countSql = 'SELECT COUNT(DISTINCT '.implode(', ', $pkColumnNames).') FROM '.$this->from;
75
76
        if (!empty($this->filterString)) {
77
            $sql .= ' WHERE '.$this->filterString;
78
            $countSql .= ' WHERE '.$this->filterString;
79
        }
80
81
        if (!empty($orderString)) {
82
            $sql .= ' ORDER BY '.$orderString;