mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-14 18:59:51 +00:00
Ignore coding guidelines in ANSI switch block.
This commit is contained in:
parent
9283aaa36b
commit
6c76df46d4
@ -353,6 +353,7 @@ class File_ANSI
|
|||||||
//$back = $attr_cell->reverse ? &$attr_cell->foreground : &$attr_cell->background;
|
//$back = $attr_cell->reverse ? &$attr_cell->foreground : &$attr_cell->background;
|
||||||
$back = &$attr_cell->{ $attr_cell->reverse ? 'foreground' : 'background' };
|
$back = &$attr_cell->{ $attr_cell->reverse ? 'foreground' : 'background' };
|
||||||
switch ($mod) {
|
switch ($mod) {
|
||||||
|
// @codingStandardsIgnoreStart
|
||||||
case 30: $front = 'black'; break;
|
case 30: $front = 'black'; break;
|
||||||
case 31: $front = 'red'; break;
|
case 31: $front = 'red'; break;
|
||||||
case 32: $front = 'green'; break;
|
case 32: $front = 'green'; break;
|
||||||
@ -370,6 +371,7 @@ class File_ANSI
|
|||||||
case 45: $back = 'magenta'; break;
|
case 45: $back = 'magenta'; break;
|
||||||
case 46: $back = 'cyan'; break;
|
case 46: $back = 'cyan'; break;
|
||||||
case 47: $back = 'white'; break;
|
case 47: $back = 'white'; break;
|
||||||
|
// @codingStandardsIgnoreEnd
|
||||||
|
|
||||||
default:
|
default:
|
||||||
//user_error('Unsupported attribute: ' . $mod);
|
//user_error('Unsupported attribute: ' . $mod);
|
||||||
|
Loading…
Reference in New Issue
Block a user