Code Duplication    Length = 9-9 lines in 2 locations

src/Services/RouteService.php 1 location

@@ 12-20 (lines=9) @@
9
{
10
    protected $key = 'routeFile';
11
12
    public function call()
13
    {
14
        $routeFile = $this->naming->getFile();
15
16
        if ($this->filesystem->exists($routeFile)) {
17
            $this->filesystem->append($routeFile, $this->getRouteString());
18
            $this->addGeneratedFileToIdeStack();
19
        }
20
    }
21
22
    private function getRouteString()
23
    {

src/Services/SidebarService.php 1 location

@@ 14-22 (lines=9) @@
11
{
12
    protected $key = 'sidebar';
13
14
    public function call()
15
    {
16
        $sidebarFile = $this->naming->getFile();
17
18
        if ($this->filesystem->exists($sidebarFile)) {
19
            $this->filesystem->append($sidebarFile, $this->getSidebarString());
20
            $this->addGeneratedFileToIdeStack();
21
        }
22
    }
23
24
    private function getSidebarString()
25
    {