Code Duplication    Length = 3-3 lines in 2 locations

src/Display/Columns/Image.php 1 location

@@ 41-43 (lines=3) @@
38
    public function getValue()
39
    {
40
        $value = parent::getValue();
41
        if (! empty($value) && (strpos($value, '://') === false)) {
42
            $value = $this->getFileUrl($value);
43
        }
44
45
        return [
46
            'image' => $value,

src/Display/Image.php 1 location

@@ 48-50 (lines=3) @@
45
46
    protected function getImageUrl($value)
47
    {
48
        if (! empty($value) && (strpos($value, '://') === false)) {
49
            $value = $this->getFileUrl($value);
50
        }
51
52
        return $value;
53
    }