protected function removeModule(): void
    {
        foreach (self::DIRECTORIES as $directory) {
            $this->remove($directory);
        }

        $this->installer->getIo()->write(
            sprintf(
                '  - Removed <comment>%s</comment> module from application',
                basename($this->packagePath)
            ),
            true
        );
    }
protected function removeModule(): void
    {
        foreach (self::DIRECTORIES as $directory) {
            $this->remove($directory);
        }

        $this->installer->getIo()->write(
            sprintf(
                '  - Removed <comment>%s</comment> module from application',
                basename($this->packagePath)
            ),
            true
        );
    }
protected function removeModule ( ) : void { foreach ( self :: DIRECTORIES as $ directory ) { $ this -> remove ( $ directory ) ; } $ this -> installer -> getIo ( ) -> write ( sprintf ( '  - Removed <comment>%s</comment> module from application' , basename ( $ this -> packagePath ) ) , true ) ; }
It recursively removes the files and empty directories
@return void
It recursively removes the files and empty directories