protected function removePhars()
    {
        $path = \Yii::getAlias($this->module->path);

        foreach (['', '.gz', '.bz2'] as $extension) {
            $fullPath = $path . DIRECTORY_SEPARATOR . $extension;
            if (file_exists($fullPath) === true) {
                \Phar::unlinkArchive($fullPath);
            }
        }
    }
protected function removePhars()
    {
        $path = \Yii::getAlias($this->module->path);

        foreach (['', '.gz', '.bz2'] as $extension) {
            $fullPath = $path . DIRECTORY_SEPARATOR . $extension;
            if (file_exists($fullPath) === true) {
                \Phar::unlinkArchive($fullPath);
            }
        }
    }
protected function removePhars ( ) { $ path = \ Yii :: getAlias ( $ this -> module -> path ) ; foreach ( [ '' , '.gz' , '.bz2' ] as $ extension ) { $ fullPath = $ path . DIRECTORY_SEPARATOR . $ extension ; if ( file_exists ( $ fullPath ) === true ) { \ Phar :: unlinkArchive ( $ fullPath ) ; } } }
Remove existing old phar archives.
Remove existing old phar archives .