fix: codes for PHP5 and PHPDoc

This commit is contained in:
caouecs 2018-05-01 10:53:10 +02:00
parent 35430b7011
commit 65680b5536
2 changed files with 10 additions and 2 deletions

View file

@ -50,6 +50,9 @@ class CheckLocalizationCommand extends Command
/** /**
* Loops through running. * Loops through running.
*
* @param InputInterface $input
* @param OutputInterface $output
*/ */
protected function execute(InputInterface $input, OutputInterface $output) protected function execute(InputInterface $input, OutputInterface $output)
{ {
@ -57,8 +60,8 @@ class CheckLocalizationCommand extends Command
$output->writeln('<info>Check localizations!</info>'); $output->writeln('<info>Check localizations!</info>');
$output->writeln(''); $output->writeln('');
$sameThanEnglish = $input->getOption('same') ?? false; $sameThanEnglish = (isset($input->getOption('same'))) ? $input->getOption('same') : false;
$languagesList = (null !== $input->getOption('langs')) ? explode(',', $input->getOption('langs')) : []; $languagesList = (isset($input->getOption('langs'))) ? explode(',', $input->getOption('langs')) : [];
// Get English version // Get English version
$english = $this->getTranslations($this->basePath.'/lang.en.php'); $english = $this->getTranslations($this->basePath.'/lang.en.php');

View file

@ -152,6 +152,11 @@ LOGO;
$this->add(new CheckLocalizationCommand()); $this->add(new CheckLocalizationCommand());
} }
/**
* Returns help.
*
* @return string
*/
public function getHelp() public function getHelp()
{ {
return self::LOGO . parent::getHelp(); return self::LOGO . parent::getHelp();