Code Duplication    Length = 9-9 lines in 2 locations

src/Display/Image.php 1 location

@@ 30-38 (lines=9) @@
27
        return $this;
28
    }
29
30
    public function get()
31
    {
32
        if ($this->isPagination()) {
33
            $data = $this->paginate();
34
35
            return $data->setCollection($this->parseRows($data->getCollection()));
36
        }
37
        return $this->parseRows($this->getQuery()->get());
38
    }
39
40
    protected function parseRows(Collection $rows)
41
    {

src/Display/Table.php 1 location

@@ 60-68 (lines=9) @@
57
        return $this->columns;
58
    }
59
60
    public function get()
61
    {
62
        if ($this->isPagination()) {
63
            $data = $this->paginate();
64
65
            return $data->setCollection($this->parseRows($data->getCollection()));
66
        }
67
68
        return $this->parseRows($this->getQuery()->get());
69
    }
70
71
    public function toArray()