Pyrech\ComposerChangelogs\tests\ChangelogsPluginTest::cleanTempDir PHP Метод

cleanTempDir() приватный Метод

Completely remove the temp dir and its content if it exists.
private cleanTempDir ( )
    private function cleanTempDir()
    {
        if (!is_dir($this->tempDir)) {
            return;
        }
        $files = glob($this->tempDir . '/*');
        foreach ($files as $file) {
            unlink($file);
        }
        rmdir($this->tempDir);
    }