Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
31 | protected function execute(InputInterface $input, OutputInterface $output) |
||
32 | { |
||
33 | if ($input->getOption('force')) { |
||
34 | $this->getContainer()->get('happyr.translation')->uploadAllTranslations(); |
||
35 | $output->writeln('Upload complete'); |
||
36 | } else { |
||
37 | $output->writeln('<error>ATTENTION:</error> This operation should not be executed in a production environment.'); |
||
38 | $output->writeln(''); |
||
39 | $output->writeln(sprintf('<info>This is going to replace every translations on your translator service.</info>')); |
||
40 | $output->writeln('Please run the operation with --force to execute'); |
||
41 | return self::RETURN_CODE_NO_FORCE; |
||
42 | } |
||
43 | } |
||
44 | } |
||
45 |