src/Commands/SyncCommand.php
private function fillMissingKeys($fileName, array $foundMissingKeys, $languageKey)
    {
        $missingKeys = [];

        foreach ($foundMissingKeys as $missingKey) {
            $missingKeys[$missingKey] = [$languageKey => ''];

            $this->output->writeln("\"<fg=yellow>{$fileName}.{$missingKey}.{$languageKey}</>\" was added.");
        }

        $this->manager->fillKeys(
            $fileName,
            $missingKeys
        );
    }
private function fillMissingKeys($fileName, array $foundMissingKeys, $languageKey)
    {
        $missingKeys = [];

        foreach ($foundMissingKeys as $missingKey) {
            $missingKeys[$missingKey] = [$languageKey => ''];

            $this->output->writeln("\"<fg=yellow>{$fileName}.{$missingKey}.{$languageKey}</>\" was added.");
        }

        $this->manager->fillKeys(
            $fileName,
            $missingKeys
        );
    }
private function fillMissingKeys ( $ fileName , array $ foundMissingKeys , $ languageKey ) { $ missingKeys = [ ] ; foreach ( $ foundMissingKeys as $ missingKey ) { $ missingKeys [ $ missingKey ] = [ $ languageKey => '' ] ; $ this -> output -> writeln ( "\"<fg=yellow>{$fileName}.{$missingKey}.{$languageKey}</>\" was added." ) ; } $ this -> manager -> fillKeys ( $ fileName , $ missingKeys ) ; }
Fill the missing keys with an empty string in the given file.

@param string $fileName
@param array $foundMissingKeys
@param string $languageKey
@return void
Fill the missing keys with an empty string in the given file .