Open tayyabhussain opened 7 years ago
@themsaid please see this
Not sure if we should care about that :) Feel free to open a PR though if you feel such fix is so important.
@themsaid I'm afraid, I don't have access to generate a PR, You just need to replace writeFile function with below code
public function writeFile($filePath, array $translations)
{
$content = "<?php\n\nreturn [";
$content .= $this->stringLineMaker($translations);
$content .= "\n];\n";
file_put_contents($filePath, $content);
}
Description:
Whenever I add translations in lang files via langman, Langman does not write into files according to PSR-2 standards. 1- It adds one space after "<?php " 2- It does not add line break at the end of array
Steps to reproduce:
1- add any translation via langman