Code Duplication    Length = 8-8 lines in 2 locations

src/Jarboe/ViewComponents/Breadcrumbs/Crumb.php 2 locations

@@ 38-45 (lines=8) @@
35
        return $this;
36
    }
37
38
    public function getTitle($model = null)
39
    {
40
        $callback = $this->title;
41
        if (is_callable($callback)) {
42
            return $callback($model);
43
        }
44
        return $this->title;
45
    }
46
47
    public function getUrl($model = null)
48
    {
@@ 47-54 (lines=8) @@
44
        return $this->title;
45
    }
46
47
    public function getUrl($model = null)
48
    {
49
        $callback = $this->url;
50
        if (is_callable($callback)) {
51
            return $callback($model);
52
        }
53
        return $this->url;
54
    }
55
56
    public function showOnListPage(bool $shouldBeShown = true)
57
    {