Evercode1\ViewMaker\WritesCrudFiles::appendEachFile PHP Method

appendEachFile() private method

private appendEachFile ( array $fileNames )
$fileNames array
    private function appendEachFile(array $fileNames)
    {
        foreach ($fileNames as $fileName => $filePath) {
            if (!is_array($fileName)) {
                $txt = $this->getContentFromTemplate($fileName, $this->crudTokens);
                $handle = fopen($filePath, "a");
                fwrite($handle, $txt);
                fclose($handle);
            }
        }
    }