Code Duplication    Length = 7-7 lines in 3 locations

src/Queries/Mysql/Count.php 1 location

@@ 39-45 (lines=7) @@
36
     *
37
     * @return PDOStatement
38
     */
39
    public function run()
40
    {
41
        $statement = $this->entity->getDb()->execute((string) $this, $this->marks);
42
        $statement->setFetchMode(PDO::FETCH_NUM);
43
44
        return $statement;
45
    }
46
47
    /**
48
     * Run the query and return the value.

src/Queries/Mysql/Sum.php 1 location

@@ 55-61 (lines=7) @@
52
     *
53
     * @return PDOStatement
54
     */
55
    public function run()
56
    {
57
        $statement = $this->entity->getDb()->execute((string) $this, $this->marks);
58
        $statement->setFetchMode(PDO::FETCH_NUM);
59
60
        return $statement;
61
    }
62
63
    /**
64
     * Run the query and return the value.

src/Queries/Mysql/SelectAll.php 1 location

@@ 91-97 (lines=7) @@
88
     *
89
     * @return PDOStatement
90
     */
91
    public function run()
92
    {
93
        $statement = $this->entity->getDb()->execute((string) $this, $this->marks);
94
        $statement->setFetchMode(PDO::FETCH_ASSOC);
95
96
        return $statement;
97
    }
98
99
    /**
100
     * Run the query and return all values.