Skip to content

Commit

Permalink
Update TrafficLight example in README (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
henry11996 authored May 10, 2024
1 parent 1ce52a1 commit 1ca4f69
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ class TrafficLight implements ColorSchemeInterface

// Our Color Scheme
$this->setColorizeArray(array(
Level::Debug => $this->ansi->color(SGR::COLOR_FG_WHITE)->get(),
Level::Info => $this->ansi->color(SGR::COLOR_FG_GREEN)->get(),
Level::Notice => $this->ansi->color(SGR::COLOR_FG_CYAN)->get(),
Level::Warning => $this->ansi->color(SGR::COLOR_FG_YELLOW)->get(),
Level::Error => $this->ansi->color(SGR::COLOR_FG_RED)->get(),
Level::Critical => $this->ansi->color(SGR::COLOR_FG_RED)->underline()->get(),
Level::Alert => $this->ansi->color([SGR::COLOR_FG_WHITE, SGR::COLOR_BG_RED_BRIGHT])->get(),
Level::Emergency => $this->ansi->color(SGR::COLOR_BG_RED_BRIGHT)->blink()->color(SGR::COLOR_FG_WHITE)->get(),
Level::Debug->value => $this->ansi->color([SGR::COLOR_FG_WHITE])->get(),
Level::Info->value => $this->ansi->color([SGR::COLOR_FG_GREEN])->get(),
Level::Notice->value => $this->ansi->color([SGR::COLOR_FG_CYAN])->get(),
Level::Warning->value => $this->ansi->color([SGR::COLOR_FG_YELLOW])->get(),
Level::Error->value => $this->ansi->color([SGR::COLOR_FG_RED])->get(),
Level::Critical->value => $this->ansi->color([SGR::COLOR_FG_RED])->underline()->get(),
Level::Alert->value => $this->ansi->color([SGR::COLOR_FG_WHITE, SGR::COLOR_BG_RED_BRIGHT])->get(),
Level::Emergency->value => $this->ansi->color([SGR::COLOR_BG_RED_BRIGHT])->blink()->color([SGR::COLOR_FG_WHITE])->get(),
));
}
}
Expand Down

0 comments on commit 1ca4f69

Please sign in to comment.