1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-03 19:57:41 +02:00
This commit is contained in:
Jordi Boggiano
2013-12-26 11:43:12 +01:00
parent cf2e93b1c3
commit 3926d95f8a
9 changed files with 30 additions and 33 deletions

View File

@@ -75,7 +75,7 @@ class DynamoDbHandler extends AbstractProcessingHandler
*/
protected function filterEmptyFields(array $record)
{
return array_filter($record, function($value) {
return array_filter($record, function ($value) {
return !empty($value) || false === $value || 0 === $value;
});
}

View File

@@ -69,7 +69,7 @@ class RavenHandler extends AbstractProcessingHandler
$level = $this->level;
// filter records based on their level
$records = array_filter($records, function($record) use ($level) {
$records = array_filter($records, function ($record) use ($level) {
return $record['level'] >= $level;
});
@@ -78,7 +78,7 @@ class RavenHandler extends AbstractProcessingHandler
}
// the record with the highest severity is the "main" one
$record = array_reduce($records, function($highest, $record) {
$record = array_reduce($records, function ($highest, $record) {
if ($record['level'] >= $highest['level']) {
return $record;
}

View File

@@ -105,7 +105,7 @@ class RotatingFileHandler extends StreamHandler
}
// Sorting the files by name to remove the older ones
usort($logFiles, function($a, $b) {
usort($logFiles, function ($a, $b) {
return strcmp($b, $a);
});

View File

@@ -56,12 +56,9 @@ class IntrospectionProcessor
$i = 0;
while (isset($trace[$i]['class']))
{
foreach ($this->skipClassesPartials as $part)
{
if (strpos($trace[$i]['class'], $part) !== false)
{
while (isset($trace[$i]['class'])) {
foreach ($this->skipClassesPartials as $part) {
if (strpos($trace[$i]['class'], $part) !== false) {
$i++;
continue 2;
}