mirror of
https://github.com/Seldaek/monolog.git
synced 2025-02-24 06:52:34 +01:00
Remove leftover $self vars
This commit is contained in:
parent
a043c01f3c
commit
dc75a998d8
@ -110,7 +110,6 @@ class BrowserConsoleHandler extends AbstractProcessingHandler
|
||||
{
|
||||
$args = array(self::quote('font-weight: normal'));
|
||||
$format = '%c' . $formatted;
|
||||
$self = 'Monolog\Handler\BrowserConsoleHandler';
|
||||
preg_match_all('/\[\[(.*?)\]\]\{([^}]*)\}/s', $format, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER);
|
||||
|
||||
foreach (array_reverse($matches) as $match) {
|
||||
@ -131,8 +130,7 @@ class BrowserConsoleHandler extends AbstractProcessingHandler
|
||||
static $colors = array('blue', 'green', 'red', 'magenta', 'orange', 'black', 'grey');
|
||||
static $labels = array();
|
||||
|
||||
$self = 'Monolog\Handler\BrowserConsoleHandler';
|
||||
return preg_replace_callback('/macro\s*:(.*?)(?:;|$)/', function($m) use($string, $self, &$colors, &$labels) {
|
||||
return preg_replace_callback('/macro\s*:(.*?)(?:;|$)/', function($m) use($string, &$colors, &$labels) {
|
||||
if (trim($m[1]) === 'autolabel') {
|
||||
// Format the string as a label with consistent auto assigned background color
|
||||
if (!isset($labels[$string])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user