Code Duplication    Length = 12-12 lines in 2 locations

src/Extraload/Extractor/Doctrine/PreparedQueryExtractor.php 1 location

@@ 33-44 (lines=12) @@
30
        $this->data = $stmt->fetchAll();
31
    }
32
33
    public function extract()
34
    {
35
        if ($this->position >= count($this->data)) {
36
            return;
37
        }
38
39
        $data = $this->current();
40
41
        $this->next();
42
43
        return $data;
44
    }
45
46
    public function current()
47
    {

src/Extraload/Extractor/Doctrine/QueryExtractor.php 1 location

@@ 20-31 (lines=12) @@
17
        $this->data = $conn->query($sql)->fetchAll();
18
    }
19
20
    public function extract()
21
    {
22
        if ($this->position >= count($this->data)) {
23
            return;
24
        }
25
26
        $data = $this->current();
27
28
        $this->next();
29
30
        return $data;
31
    }
32
33
    public function current()
34
    {