Code Duplication    Length = 7-7 lines in 2 locations

src/Queries/Mysql/AggregationTrait.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.

src/Queries/Mysql/Select.php 1 location

@@ 249-255 (lines=7) @@
246
    /**
247
     * {@inheritdoc}
248
     */
249
    public function __invoke()
250
    {
251
        $statement = $this->table->getDatabase()->execute((string) $this, $this->marks);
252
        $statement->setFetchMode(PDO::FETCH_ASSOC);
253
254
        return $statement;
255
    }
256
257
    /**
258
     * {@inheritdoc}