Code Duplication    Length = 8-8 lines in 2 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