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

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