mageekguy\atoum\report\fields\runner\coverage\html::cleanDestinationDirectory PHP Method

cleanDestinationDirectory() public method

    public function cleanDestinationDirectory()
    {
        try {
            foreach ($this->getDestinationDirectoryIterator() as $inode) {
                if ($inode->isDir() === false) {
                    $this->adapter->unlink($inode->getPathname());
                } else {
                    if (($pathname = $inode->getPathname()) !== $this->destinationDirectory) {
                        $this->adapter->rmdir($pathname);
                    }
                }
            }
        } catch (\exception $exception) {
        }
        return $this;
    }