fix: codes for PHP5 and PHPDoc
This commit is contained in:
parent
35430b7011
commit
65680b5536
|
@ -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');
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue