Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
8197ab55
Commit
8197ab55
authored
May 08, 2013
by
Suralc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert static calls in switch
parent
ded4ccd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
Console.php
framework/helpers/base/Console.php
+26
-26
No files found.
framework/helpers/base/Console.php
View file @
8197ab55
...
@@ -316,76 +316,76 @@ class Console
...
@@ -316,76 +316,76 @@ class Console
$styleA
=
array
();
$styleA
=
array
();
foreach
(
explode
(
';'
,
$ansi
)
as
$controlCode
)
{
foreach
(
explode
(
';'
,
$ansi
)
as
$controlCode
)
{
switch
(
$controlCode
)
{
switch
(
$controlCode
)
{
case
s
elf
::
FG_BLACK
:
case
s
tatic
::
FG_BLACK
:
$style
=
array
(
'color'
=>
'#000000'
);
$style
=
array
(
'color'
=>
'#000000'
);
break
;
break
;
case
s
elf
::
FG_BLUE
:
case
s
tatic
::
FG_BLUE
:
$style
=
array
(
'color'
=>
'#000078'
);
$style
=
array
(
'color'
=>
'#000078'
);
break
;
break
;
case
s
elf
::
FG_CYAN
:
case
s
tatic
::
FG_CYAN
:
$style
=
array
(
'color'
=>
'#007878'
);
$style
=
array
(
'color'
=>
'#007878'
);
break
;
break
;
case
s
elf
::
FG_GREEN
:
case
s
tatic
::
FG_GREEN
:
$style
=
array
(
'color'
=>
'#007800'
);
$style
=
array
(
'color'
=>
'#007800'
);
break
;
break
;
case
s
elf
::
FG_GREY
:
case
s
tatic
::
FG_GREY
:
$style
=
array
(
'color'
=>
'#787878'
);
$style
=
array
(
'color'
=>
'#787878'
);
break
;
break
;
case
s
elf
::
FG_PURPLE
:
case
s
tatic
::
FG_PURPLE
:
$style
=
array
(
'color'
=>
'#780078'
);
$style
=
array
(
'color'
=>
'#780078'
);
break
;
break
;
case
s
elf
::
FG_RED
:
case
s
tatic
::
FG_RED
:
$style
=
array
(
'color'
=>
'#780000'
);
$style
=
array
(
'color'
=>
'#780000'
);
break
;
break
;
case
s
elf
::
FG_YELLOW
:
case
s
tatic
::
FG_YELLOW
:
$style
=
array
(
'color'
=>
'#787800'
);
$style
=
array
(
'color'
=>
'#787800'
);
break
;
break
;
case
s
elf
::
BG_BLACK
:
case
s
tatic
::
BG_BLACK
:
$style
=
array
(
'background-color'
=>
'#000000'
);
$style
=
array
(
'background-color'
=>
'#000000'
);
break
;
break
;
case
s
elf
::
BG_BLUE
:
case
s
tatic
::
BG_BLUE
:
$style
=
array
(
'background-color'
=>
'#000078'
);
$style
=
array
(
'background-color'
=>
'#000078'
);
break
;
break
;
case
s
elf
::
BG_CYAN
:
case
s
tatic
::
BG_CYAN
:
$style
=
array
(
'background-color'
=>
'#007878'
);
$style
=
array
(
'background-color'
=>
'#007878'
);
break
;
break
;
case
s
elf
::
BG_GREEN
:
case
s
tatic
::
BG_GREEN
:
$style
=
array
(
'background-color'
=>
'#007800'
);
$style
=
array
(
'background-color'
=>
'#007800'
);
break
;
break
;
case
s
elf
::
BG_GREY
:
case
s
tatic
::
BG_GREY
:
$style
=
array
(
'background-color'
=>
'#787878'
);
$style
=
array
(
'background-color'
=>
'#787878'
);
break
;
break
;
case
s
elf
::
BG_PURPLE
:
case
s
tatic
::
BG_PURPLE
:
$style
=
array
(
'background-color'
=>
'#780078'
);
$style
=
array
(
'background-color'
=>
'#780078'
);
break
;
break
;
case
s
elf
::
BG_RED
:
case
s
tatic
::
BG_RED
:
$style
=
array
(
'background-color'
=>
'#780000'
);
$style
=
array
(
'background-color'
=>
'#780000'
);
break
;
break
;
case
s
elf
::
BG_YELLOW
:
case
s
tatic
::
BG_YELLOW
:
$style
=
array
(
'background-color'
=>
'#787800'
);
$style
=
array
(
'background-color'
=>
'#787800'
);
break
;
break
;
case
s
elf
::
BOLD
:
case
s
tatic
::
BOLD
:
$style
=
array
(
'font-weight'
=>
'bold'
);
$style
=
array
(
'font-weight'
=>
'bold'
);
break
;
break
;
case
s
elf
::
ITALIC
:
case
s
tatic
::
ITALIC
:
$style
=
array
(
'font-style'
=>
'italic'
);
$style
=
array
(
'font-style'
=>
'italic'
);
break
;
break
;
case
s
elf
::
UNDERLINE
:
case
s
tatic
::
UNDERLINE
:
$style
=
array
(
'text-decoration'
=>
array
(
'underline'
));
$style
=
array
(
'text-decoration'
=>
array
(
'underline'
));
break
;
break
;
case
s
elf
::
OVERLINED
:
case
s
tatic
::
OVERLINED
:
$style
=
array
(
'text-decoration'
=>
array
(
'overline'
));
$style
=
array
(
'text-decoration'
=>
array
(
'overline'
));
break
;
break
;
case
s
elf
::
CROSSED_OUT
:
case
s
tatic
::
CROSSED_OUT
:
$style
=
array
(
'text-decoration'
=>
array
(
'line-through'
));
$style
=
array
(
'text-decoration'
=>
array
(
'line-through'
));
break
;
break
;
case
s
elf
::
BLINK
:
case
s
tatic
::
BLINK
:
$style
=
array
(
'text-decoration'
=>
array
(
'blink'
));
$style
=
array
(
'text-decoration'
=>
array
(
'blink'
));
break
;
break
;
case
s
elf
::
NEGATIVE
:
// ???
case
s
tatic
::
NEGATIVE
:
// ???
case
s
elf
::
CONCEALED
:
case
s
tatic
::
CONCEALED
:
case
s
elf
::
ENCIRCLED
:
case
s
tatic
::
ENCIRCLED
:
case
s
elf
::
FRAMED
:
case
s
tatic
::
FRAMED
:
// TODO allow resetting codes
// TODO allow resetting codes
break
;
break
;
case
0
:
// ansi reset
case
0
:
// ansi reset
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment