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