Code Duplication    Length = 10-10 lines in 2 locations

src/Queries/Mysql/AggregationTrait.php 1 location

@@ 60-69 (lines=10) @@
57
     *
58
     * @return string
59
     */
60
    public function __toString()
61
    {
62
        $query = "SELECT ".self::AGGREGATION_FUNCTION."(`{$this->field}`) FROM `{$this->table->getName()}`";
63
64
        $query .= $this->fromToString();
65
        $query .= $this->whereToString();
66
        $query .= $this->limitToString();
67
68
        return $query;
69
    }
70
}
71

src/Queries/Mysql/Count.php 1 location

@@ 34-43 (lines=10) @@
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function __toString()
35
    {
36
        $query = "SELECT ".self::AGGREGATION_FUNCTION."(*) FROM `{$this->table->getName()}`";
37
38
        $query .= $this->fromToString();
39
        $query .= $this->whereToString();
40
        $query .= $this->limitToString();
41
42
        return $query;
43
    }
44
}
45