From e4d1cfe528f3dc14a451885999876104c106d55a Mon Sep 17 00:00:00 2001 From: bocharsky-bw Date: Thu, 7 Mar 2019 15:12:38 +0200 Subject: [PATCH 1/3] Fix locale description in a few commands --- Command/DeleteObsoleteCommand.php | 2 +- Command/ExtractCommand.php | 2 +- Command/StatusCommand.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Command/DeleteObsoleteCommand.php b/Command/DeleteObsoleteCommand.php index 4da26b80..c2827669 100644 --- a/Command/DeleteObsoleteCommand.php +++ b/Command/DeleteObsoleteCommand.php @@ -72,7 +72,7 @@ protected function configure() ->setName(self::$defaultName) ->setDescription('Delete all translations marked as obsolete.') ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default') - ->addArgument('locale', InputArgument::OPTIONAL, 'The locale ot use. If omitted, we use all configured locales.', null) + ->addArgument('locale', InputArgument::OPTIONAL, 'The locale to use. If omitted, we use all configured locales.', null) ->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle you want remove translations from.') ; } diff --git a/Command/ExtractCommand.php b/Command/ExtractCommand.php index 8da04b4d..f3727d4f 100644 --- a/Command/ExtractCommand.php +++ b/Command/ExtractCommand.php @@ -89,7 +89,7 @@ protected function configure() ->setName(self::$defaultName) ->setDescription('Extract translations from source code.') ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default') - ->addArgument('locale', InputArgument::OPTIONAL, 'The locale ot use. If omitted, we use all configured locales.', false) + ->addArgument('locale', InputArgument::OPTIONAL, 'The locale to use. If omitted, we use all configured locales.', false) ->addOption('hide-errors', null, InputOption::VALUE_NONE, 'If we should print error or not') ->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle you want extract translations from.') ; diff --git a/Command/StatusCommand.php b/Command/StatusCommand.php index a4617121..0547131e 100644 --- a/Command/StatusCommand.php +++ b/Command/StatusCommand.php @@ -68,7 +68,7 @@ protected function configure() ->setName(self::$defaultName) ->setDescription('Show status about your translations.') ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default') - ->addArgument('locale', InputArgument::OPTIONAL, 'The locale ot use. If omitted, we use all configured locales.', false) + ->addArgument('locale', InputArgument::OPTIONAL, 'The locale to use. If omitted, we use all configured locales.', false) ->addOption('json', null, InputOption::VALUE_NONE, 'If we should output in Json format') ->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The translations for bundle you want to check.') ; From 8fd27decbf142378c90d8028787cec13bcd2ee87 Mon Sep 17 00:00:00 2001 From: bocharsky-bw Date: Tue, 25 Jun 2019 09:30:24 +0300 Subject: [PATCH 2/3] Split use statements --- Command/DeleteObsoleteCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Command/DeleteObsoleteCommand.php b/Command/DeleteObsoleteCommand.php index c2827669..649f1da6 100644 --- a/Command/DeleteObsoleteCommand.php +++ b/Command/DeleteObsoleteCommand.php @@ -28,7 +28,8 @@ */ class DeleteObsoleteCommand extends Command { - use BundleTrait, StorageTrait; + use BundleTrait; + use StorageTrait; protected static $defaultName = 'translation:delete-obsolete'; From fac6efabac12affb4c060e5f3f4bc63699840652 Mon Sep 17 00:00:00 2001 From: bocharsky-bw Date: Tue, 25 Jun 2019 09:32:02 +0300 Subject: [PATCH 3/3] Remove unused namespace and split namespaces --- Command/DownloadCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Command/DownloadCommand.php b/Command/DownloadCommand.php index 6d853776..974536c3 100644 --- a/Command/DownloadCommand.php +++ b/Command/DownloadCommand.php @@ -20,14 +20,14 @@ use Translation\Bundle\Service\CacheClearer; use Translation\Bundle\Service\ConfigurationManager; use Translation\Bundle\Service\StorageManager; -use Translation\Bundle\Model\Configuration; /** * @author Tobias Nyholm */ class DownloadCommand extends Command { - use BundleTrait, StorageTrait; + use BundleTrait; + use StorageTrait; protected static $defaultName = 'translation:download';