Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab authored and github-actions[bot] committed Jul 8, 2024
1 parent bc3b158 commit 7c6309b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Commands/FixGrammarTranslationsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function promptForMissingArgumentsUsing()
];
}

function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output)
public function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output)
{
if ($this->didReceiveOptions($input)) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/ShowMissingTranslationsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ShowMissingTranslationsCommand extends Command implements PromptsForMissin
{
public $signature = 'translator:missing {locale : The locale of reference}';

public $description = "Show all missing translations present in the locale of reference but not in the others languages.";
public $description = 'Show all missing translations present in the locale of reference but not in the others languages.';

public function handle(): int
{
Expand Down
3 changes: 1 addition & 2 deletions src/Commands/SortAllTranslationsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function promptForMissingArgumentsUsing()
];
}

function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output)
public function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output)
{
if ($this->didReceiveOptions($input)) {
return;
Expand All @@ -70,7 +70,6 @@ function afterPromptingForMissingArguments(InputInterface $input, OutputInterfac
->unique()
->toArray();


$input->setOption('namespaces', multiselect(
label: 'What namespaces would you like to sort?',
options: $options,
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/TranslateTranslationsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function promptForMissingArgumentsUsing()
];
}

function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output)
public function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output)
{
if ($this->didReceiveOptions($input)) {
return;
Expand All @@ -115,7 +115,7 @@ function afterPromptingForMissingArguments(InputInterface $input, OutputInterfac
}

if ($input->getOption('all') === false) {
$input->setOption('all', !confirm(
$input->setOption('all', ! confirm(
label: 'Only translate missing keys?',
no: 'No, translate all keys'
));
Expand Down

0 comments on commit 7c6309b

Please sign in to comment.