App\Console\Commands\SkinMake::clean PHP Method

clean() protected method

clean
protected clean ( ) : void
return void
    protected function clean()
    {
        $plugin = $this->attr('plugin');
        $path = $this->attr('path');
        // delete skin path
        if (is_writable($plugin->getPath($path))) {
            $this->files->deleteDirectory($plugin->getPath($path));
        }
        // unregister component from composer.json
        $composerFile = $plugin->getPath('composer.json');
        if ($this->originComposerStr !== null && is_writable($composerFile)) {
            $this->files->put($composerFile, $this->originComposerStr);
        }
    }