mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/16955] Clean up installer classes for psalm
PHPBB3-16955
This commit is contained in:
@@ -73,7 +73,7 @@ class show extends \phpbb\console\command\command
|
||||
* @param InputInterface $input An InputInterface instance
|
||||
* @param OutputInterface $output An OutputInterface instance
|
||||
*
|
||||
* @return null
|
||||
* @return int 0 if everything went fine, or a non-zero exit code
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
@@ -90,7 +90,7 @@ class show extends \phpbb\console\command\command
|
||||
{
|
||||
$iohandler->add_error_message(array('MISSING_FILE', $config_file));
|
||||
|
||||
return;
|
||||
return 1;
|
||||
}
|
||||
|
||||
try
|
||||
@@ -101,7 +101,7 @@ class show extends \phpbb\console\command\command
|
||||
{
|
||||
$iohandler->add_error_message('INVALID_YAML_FILE');
|
||||
|
||||
return;
|
||||
return 1;
|
||||
}
|
||||
|
||||
$processor = new Processor();
|
||||
@@ -115,9 +115,11 @@ class show extends \phpbb\console\command\command
|
||||
{
|
||||
$iohandler->add_error_message('INVALID_CONFIGURATION', $e->getMessage());
|
||||
|
||||
return;
|
||||
return 1;
|
||||
}
|
||||
|
||||
$style->block(Yaml::dump(array('installer' => $config), 10, 4, true, false));
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@@ -73,7 +73,7 @@ class validate extends \phpbb\console\command\command
|
||||
* @param InputInterface $input An InputInterface instance
|
||||
* @param OutputInterface $output An OutputInterface instance
|
||||
*
|
||||
* @return null
|
||||
* @return int 0 if everything went fine, or a non-zero exit code
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
|
@@ -92,7 +92,7 @@ class install extends \phpbb\console\command\command
|
||||
* @param InputInterface $input An InputInterface instance
|
||||
* @param OutputInterface $output An OutputInterface instance
|
||||
*
|
||||
* @return null
|
||||
* @return int 0 if everything went fine, or a non-zero exit code
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
|
@@ -73,7 +73,7 @@ class show extends \phpbb\console\command\command
|
||||
* @param InputInterface $input An InputInterface instance
|
||||
* @param OutputInterface $output An OutputInterface instance
|
||||
*
|
||||
* @return null
|
||||
* @return int 0 if everything went fine, or a non-zero exit code
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
@@ -90,7 +90,7 @@ class show extends \phpbb\console\command\command
|
||||
{
|
||||
$iohandler->add_error_message(array('MISSING_FILE', $config_file));
|
||||
|
||||
return;
|
||||
return 1;
|
||||
}
|
||||
|
||||
try
|
||||
@@ -101,7 +101,7 @@ class show extends \phpbb\console\command\command
|
||||
{
|
||||
$iohandler->add_error_message('INVALID_YAML_FILE');
|
||||
|
||||
return;
|
||||
return 1;
|
||||
}
|
||||
|
||||
$processor = new Processor();
|
||||
@@ -115,9 +115,11 @@ class show extends \phpbb\console\command\command
|
||||
{
|
||||
$iohandler->add_error_message('INVALID_CONFIGURATION', $e->getMessage());
|
||||
|
||||
return;
|
||||
return 1;
|
||||
}
|
||||
|
||||
$style->block(Yaml::dump(array('updater' => $config), 10, 4, true, false));
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@@ -73,7 +73,7 @@ class validate extends \phpbb\console\command\command
|
||||
* @param InputInterface $input An InputInterface instance
|
||||
* @param OutputInterface $output An OutputInterface instance
|
||||
*
|
||||
* @return null
|
||||
* @return int 0 if everything went fine, or a non-zero exit code
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
|
Reference in New Issue
Block a user