mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 12:47:39 +02:00
simplify isset/unset
This commit is contained in:
@@ -41,10 +41,9 @@ class ChromePHPFormatter implements FormatterInterface
|
|||||||
{
|
{
|
||||||
// Retrieve the line and file if set and remove them from the formatted extra
|
// Retrieve the line and file if set and remove them from the formatted extra
|
||||||
$backtrace = 'unknown';
|
$backtrace = 'unknown';
|
||||||
if (isset($record['extra']['file']) && isset($record['extra']['line'])) {
|
if (isset($record['extra']['file'], $record['extra']['line'])) {
|
||||||
$backtrace = $record['extra']['file'].' : '.$record['extra']['line'];
|
$backtrace = $record['extra']['file'].' : '.$record['extra']['line'];
|
||||||
unset($record['extra']['file']);
|
unset($record['extra']['file'], $record['extra']['line']);
|
||||||
unset($record['extra']['line']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$message = array('message' => $record['message']);
|
$message = array('message' => $record['message']);
|
||||||
|
Reference in New Issue
Block a user