Code Duplication    Length = 7-7 lines in 3 locations

src/Queries/Mysql/Count.php 1 location

@@ 33-39 (lines=7) @@
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function __invoke()
34
    {
35
        $statement = $this->table->getDatabase()->execute((string) $this, $this->marks);
36
        $statement->setFetchMode(PDO::FETCH_NUM);
37
38
        return $statement;
39
    }
40
41
    /**
42
     * {@inheritdoc}

src/Queries/Mysql/Select.php 1 location

@@ 161-167 (lines=7) @@
158
    /**
159
     * {@inheritdoc}
160
     */
161
    public function __invoke()
162
    {
163
        $statement = $this->table->getDatabase()->execute((string) $this, $this->marks);
164
        $statement->setFetchMode(PDO::FETCH_ASSOC);
165
166
        return $statement;
167
    }
168
169
    /**
170
     * {@inheritdoc}

src/Queries/Mysql/Sum.php 1 location

@@ 47-53 (lines=7) @@
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function __invoke()
48
    {
49
        $statement = $this->table->getDatabase()->execute((string) $this, $this->marks);
50
        $statement->setFetchMode(PDO::FETCH_NUM);
51
52
        return $statement;
53
    }
54
55
    /**
56
     * Build and return the query.