/** * Execute cleanup. * * @return $this */ public function execute() { foreach ($this->backup->getRemoval() as $file) { if (!is_file($file)) { continue; } unlink($file); } $this->backup->resetCollection(); return $this; }
/** * Execute cleanup. * * @return $this */ public function execute() { foreach ($this->backup->getRemoval() as $file) { if (!is_file($file)) { continue; } unlink($file); } $this->backup->resetCollection(); return $this; }