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

@@ 47-55 (lines=9) @@
44
        return $this->columns;
45
    }
46
47
    public function get()
48
    {
49
        if ($this->isPagination()) {
50
            $data = $this->paginate();
51
52
            return $data->setCollection($this->parseRows($data->getCollection()));
53
        }
54
        return $this->parseRows($this->getQuery()->get());
55
    }
56
57
    public function toArray()
58
    {