src/Manager.php
public function writeFile($filePath, array $translations)
    {
        $content = "<?php \n\nreturn [";

        $content .= $this->stringLineMaker($translations);

        $content .= "\n];";

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

        $content .= $this->stringLineMaker($translations);

        $content .= "\n];";

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

@param string $filePath
@param array $translations
@return void
Write a language file from array .