Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7565681

Browse filesBrowse files
authored
Use snake_case for options, this time really
1 parent 4e4128f commit 7565681
Copy full SHA for 7565681

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function __construct($options = array())
7979
'date_format' => self::SIMPLE_DATE,
8080
'colors' => true,
8181
'multiline' => false,
82-
'ignoreEmptyContextAndExtra' => true,
82+
'ignore_empty_context_and_extra' => true,
8383
), $options);
8484

8585
if (class_exists(VarCloner::class)) {
@@ -120,13 +120,13 @@ public function format(array $record)
120120

121121
$levelColor = self::$levelColorMap[$record['level']];
122122

123-
if (!$this->options['ignoreEmptyContextAndExtra'] || !empty($record['context'])) {
123+
if (!$this->options['ignore_empty_context_and_extra'] || !empty($record['context'])) {
124124
$context = ($this->options['multiline'] ? "\n" : ' ').$this->dumpData($record['context']);
125125
} else {
126126
$context = '';
127127
}
128128

129-
if (!$this->options['ignoreEmptyContextAndExtra'] || !empty($record['extra'])) {
129+
if (!$this->options['ignore_empty_context_and_extra'] || !empty($record['extra'])) {
130130
$extra = ($this->options['multiline'] ? "\n" : ' ').$this->dumpData($record['extra']);
131131
} else {
132132
$extra = '';

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.