@@ -30,7 +30,7 @@ protected function configure()
3030 $ this
3131 ->setDescription ('Reloads all the translations from your chosen GoogleSheet. ' )
3232 ->setHelp ('Usage: ... phiil:translation:reload --exclude=de,en ' )
33- ;
33+ ;
3434 }
3535
3636 protected function execute (InputInterface $ input , OutputInterface $ output )
@@ -47,7 +47,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
4747 return 1 ;
4848 }
4949
50- $ setupLog = $ this ->_setupTranslationDirectory ($ locales );
50+ $ setupLog = $ this ->setupTranslationDirectory ($ locales );
5151
5252 if (!empty ($ setupLog )) {
5353 foreach ($ setupLog as $ logItem ) {
@@ -73,21 +73,21 @@ protected function execute(InputInterface $input, OutputInterface $output)
7373 /**
7474 * Create the ./translations directory if it doesn't exist and touch files to prepare the translation loader
7575 */
76- private function _setupTranslationDirectory (array $ locales ) :array
76+ private function setupTranslationDirectory (array $ locales ) :array
7777 {
7878 $ filesystem = new Filesystem ();
7979 $ log = [];
8080
81- $ this ->_createTranslationsDirectory ($ filesystem , $ log );
82- $ this ->_touchStandardFiles ($ filesystem , $ locales , $ log );
81+ $ this ->createTranslationsDirectory ($ filesystem , $ log );
82+ $ this ->touchStandardFiles ($ filesystem , $ locales , $ log );
8383
8484 return $ log ;
8585 }
8686
8787 /**
8888 * Make sure that the translations directory exists
8989 */
90- private function _createTranslationsDirectory (Filesystem $ filesystem , array &$ log , string $ directoryName = 'translations ' )
90+ private function createTranslationsDirectory (Filesystem $ filesystem , array &$ log , string $ directoryName = 'translations ' )
9191 {
9292 if (!$ filesystem ->exists ('./ ' . $ directoryName )) {
9393 $ filesystem ->mkdir ('./ ' . $ directoryName );
@@ -98,7 +98,7 @@ private function _createTranslationsDirectory(Filesystem $filesystem, array &$lo
9898 /**
9999 * If these files don't exist the translation loader doesn't work
100100 */
101- private function _touchStandardFiles (FileSystem $ filesystem , array $ locales , array &$ log )
101+ private function touchStandardFiles (FileSystem $ filesystem , array $ locales , array &$ log )
102102 {
103103 foreach ($ locales as $ index => $ locale ) {
104104 $ fileName = './translations/messages. ' . $ locale . '.gs_trans ' ;
0 commit comments