public function writeFile($filePath, array $translations) { $content = "<?php \n\nreturn ["; $content .= $this->stringLineMaker($translations); $content .= "\n];"; file_put_contents($filePath, $content); }