1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/16955] Fix phpdoc annotations and return types

PHPBB3-16955
This commit is contained in:
Ruben Calvo
2022-12-31 14:58:14 +01:00
parent 60aee47f50
commit 3e8fced5c8
73 changed files with 251 additions and 205 deletions

View File

@@ -96,7 +96,7 @@ class show extends \phpbb\console\command\command
try
{
$config = Yaml::parse(file_get_contents($config_file), true, false);
$config = Yaml::parse(file_get_contents($config_file), true);
}
catch (ParseException $e)
{
@@ -119,7 +119,7 @@ class show extends \phpbb\console\command\command
return Command::FAILURE;
}
$style->block(Yaml::dump(array('installer' => $config), 10, 4, true, false));
$style->block(Yaml::dump(array('installer' => $config), 10, 4, true));
return Command::SUCCESS;
}

View File

@@ -96,7 +96,7 @@ class validate extends \phpbb\console\command\command
try
{
$config = Yaml::parse(file_get_contents($config_file), true, false);
$config = Yaml::parse(file_get_contents($config_file), true);
}
catch (ParseException $e)
{

View File

@@ -16,6 +16,7 @@ namespace phpbb\install\console\command\install;
use phpbb\install\exception\installer_exception;
use phpbb\install\helper\install_helper;
use phpbb\install\helper\iohandler\cli_iohandler;
use phpbb\install\helper\iohandler\exception\iohandler_not_implemented_exception;
use phpbb\install\helper\iohandler\factory;
use phpbb\install\installer;
use phpbb\install\installer_configuration;
@@ -90,10 +91,11 @@ class install extends \phpbb\console\command\command
*
* Install the board
*
* @param InputInterface $input An InputInterface instance
* @param InputInterface $input An InputInterface instance
* @param OutputInterface $output An OutputInterface instance
*
* @return int 0 if everything went fine, or a non-zero exit code
* @throws iohandler_not_implemented_exception
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
@@ -124,7 +126,7 @@ class install extends \phpbb\console\command\command
try
{
$config = Yaml::parse(file_get_contents($config_file), true, false);
$config = Yaml::parse(file_get_contents($config_file), true);
}
catch (ParseException $e)
{

View File

@@ -96,7 +96,7 @@ class show extends \phpbb\console\command\command
try
{
$config = Yaml::parse(file_get_contents($config_file), true, false);
$config = Yaml::parse(file_get_contents($config_file), true);
}
catch (ParseException $e)
{
@@ -119,7 +119,7 @@ class show extends \phpbb\console\command\command
return Command::FAILURE;
}
$style->block(Yaml::dump(array('updater' => $config), 10, 4, true, false));
$style->block(Yaml::dump(array('updater' => $config), 10, 4, true));
return Command::SUCCESS;
}

View File

@@ -96,7 +96,7 @@ class validate extends \phpbb\console\command\command
try
{
$config = Yaml::parse(file_get_contents($config_file), true, false);
$config = Yaml::parse(file_get_contents($config_file), true);
}
catch (ParseException $e)
{

View File

@@ -124,7 +124,7 @@ class update extends \phpbb\console\command\command
try
{
$config = Yaml::parse(file_get_contents($config_file), true, false);
$config = Yaml::parse(file_get_contents($config_file), true);
}
catch (ParseException $e)
{