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

@@ 56-60 (lines=5) @@
53
            }
54
55
            $path = $row->$pathKey;
56
            if (($disk = $this->getDisk())) {
57
                $url = \Storage::disk($disk)->url($path);
58
            } else {
59
                $url = asset($path);
60
            }
61
62
            return [
63
                'id' => $row->getKey(),