mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11150] Fix CS
PHPBB3-11150
This commit is contained in:
committed by
Tristan Darricau
parent
ea4a4acee0
commit
b5136e4976
@@ -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;
|
||||
|
Reference in New Issue
Block a user