Code Duplication    Length = 5-5 lines in 2 locations

src/View/Columns/Image.php 1 location

@@ 57-61 (lines=5) @@
54
    {
55
        $value = parent::getValue();
56
        if (!empty($value) && (strpos($value, '://') === false)) {
57
            if (($disk = $this->getDisk())) {
58
                $value = \Storage::disk($disk)->url($value);
59
            } else {
60
                $value = asset($value);
61
            }
62
        }
63
64
        return [

src/View/Image.php 1 location

@@ 52-56 (lines=5) @@
49
50
        return $rows->map(function (Model $row) use ($key) {
51
            $path = $row->$key;
52
            if (($disk = $this->getDisk())) {
53
                $url = \Storage::disk($disk)->url($path);
54
            } else {
55
                $url = asset($path);
56
            }
57
58
            return [
59
                'id' => $row->id,