public function removeTempStructureTemplates() { if (!$this->templatePaths) { return; } foreach (array_keys($this->templatePaths) as $templatePath) { unlink($templatePath); } $this->templatePaths = []; }