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:
@@ -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;
|
||||
}
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user