Code Duplication    Length = 4-4 lines in 2 locations

src/Command/Clean.php 1 location

@@ 33-36 (lines=4) @@
30
            $this->wlDone(sprintf("Output directory '%s' removed.", $outputDir));
31
        }
32
        // delete local server temp files
33
        if ($this->fs->exists($this->getPath().'/'.Serve::$tmpDir)) {
34
            $this->fs->remove($this->getPath().'/'.Serve::$tmpDir);
35
            $this->wlDone('Temporary files deleted.');
36
        }
37
        exit(0);
38
    }
39
}

src/Command/CommandClean.php 1 location

@@ 43-46 (lines=4) @@
40
            $output->writeln(sprintf("Output directory '%s' removed.", $outputDir));
41
        }
42
        // delete local server temp files
43
        if ($this->fs->exists($this->getPath() . '/' . Serve::$tmpDir)) {
44
            $this->fs->remove($this->getPath() . '/' . Serve::$tmpDir);
45
            $output->writeln('Temporary files deleted.');
46
        }
47
48
        return 0;
49
    }