Code Duplication    Length = 8-8 lines in 3 locations

Composers/AssetsViewComposer.php 1 location

@@ 56-63 (lines=8) @@
53
        $this->assetPipeline->requireJs(config('asgard.core.core.admin-required-assets.js'));
54
    }
55
56
    private function onBackend()
57
    {
58
        $url = $this->request->url();
59
        if (str_contains($url, config('asgard.core.core.admin-prefix'))) {
60
            return true;
61
        }
62
        return false;
63
    }
64
}
65

Providers/SidebarServiceProvider.php 1 location

@@ 29-36 (lines=8) @@
26
        }
27
    }
28
29
    private function onBackend()
30
    {
31
        $url = $this->request->url();
32
        if (str_contains($url, config('asgard.core.core.admin-prefix'))) {
33
            return true;
34
        }
35
        return false;
36
    }
37
}
38

Composers/ApplicationVersionViewComposer.php 1 location

@@ 38-45 (lines=8) @@
35
        $view->with('version', $this->getAppVersion());
36
    }
37
38
    private function onBackend()
39
    {
40
        $url = $this->request->url();
41
        if (str_contains($url, config('asgard.core.core.admin-prefix'))) {
42
            return true;
43
        }
44
        return false;
45
    }
46
47
    /**
48
     * @return string