mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-30 04:58:37 +01:00
[ticket/11150] Fix CS
PHPBB3-11150
This commit is contained in:
parent
ea4a4acee0
commit
b5136e4976
0
phpBB/ext/index.htm
Executable file → Normal file
0
phpBB/ext/index.htm
Executable file → Normal file
@ -58,13 +58,20 @@ class html_output_formatter extends \Composer\Console\HtmlOutputFormatter
|
||||
protected function formatHtml($matches)
|
||||
{
|
||||
$out = '<span style="';
|
||||
foreach (explode(';', $matches[1]) as $code) {
|
||||
if (isset(self::$availableForegroundColors[$code])) {
|
||||
foreach (explode(';', $matches[1]) as $code)
|
||||
{
|
||||
if (isset(self::$availableForegroundColors[$code]))
|
||||
{
|
||||
$out .= 'color:'.self::$availableForegroundColors[$code].';';
|
||||
} elseif (isset(self::$availableBackgroundColors[$code])) {
|
||||
}
|
||||
elseif (isset(self::$availableBackgroundColors[$code]))
|
||||
{
|
||||
$out .= 'background-color:'.self::$availableBackgroundColors[$code].';';
|
||||
} elseif (isset(self::$availableOptions[$code])) {
|
||||
switch (self::$availableOptions[$code]) {
|
||||
}
|
||||
elseif (isset(self::$availableOptions[$code]))
|
||||
{
|
||||
switch (self::$availableOptions[$code])
|
||||
{
|
||||
case 'bold':
|
||||
$out .= 'font-weight:bold;';
|
||||
break;
|
||||
|
@ -70,8 +70,7 @@ trait translate_composer_trait
|
||||
$parameters = [$elements[1]];
|
||||
}
|
||||
|
||||
//$translated_message = $this->language->lang_array($lang_key, $parameters);
|
||||
$translated_message = call_user_func_array([$this->language, 'lang'], array_merge((array)$lang_key, $parameters));
|
||||
$translated_message = $this->language->lang_array($lang_key, $parameters);
|
||||
|
||||
switch ($level)
|
||||
{
|
||||
@ -226,8 +225,7 @@ trait translate_composer_trait
|
||||
$error = '';
|
||||
foreach ($this->composer_error as $error_line)
|
||||
{
|
||||
// $error .= $this->language->lang_array($error_line[0], $error_line[1]);
|
||||
$error .= call_user_func_array([$this->language, 'lang'], array_merge((array)$error_line[0], $error_line[1]));
|
||||
$error .= $this->language->lang_array($error_line[0], $error_line[1]);
|
||||
$error .= "\n";
|
||||
}
|
||||
|
||||
|
@ -13,13 +13,7 @@
|
||||
|
||||
namespace phpbb\console\command\extension;
|
||||
|
||||
use Composer\Package\CompletePackage;
|
||||
use Composer\Package\PackageInterface;
|
||||
use phpbb\composer\installer;
|
||||
use phpbb\composer\manager;
|
||||
use phpbb\composer\manager_interface;
|
||||
use Symfony\Component\Console\Formatter\OutputFormatter;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||
|
@ -15,7 +15,6 @@ namespace phpbb\console\command\extension;
|
||||
|
||||
use phpbb\composer\exception\managed_with_error_exception;
|
||||
use phpbb\composer\io\console_io;
|
||||
use phpbb\composer\manager;
|
||||
use phpbb\composer\manager_interface;
|
||||
use phpbb\language\language;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
|
Loading…
x
Reference in New Issue
Block a user