mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-04 04:07:39 +02:00
CS fixes
This commit is contained in:
@@ -75,7 +75,7 @@ class DynamoDbHandler extends AbstractProcessingHandler
|
|||||||
*/
|
*/
|
||||||
protected function filterEmptyFields(array $record)
|
protected function filterEmptyFields(array $record)
|
||||||
{
|
{
|
||||||
return array_filter($record, function($value) {
|
return array_filter($record, function ($value) {
|
||||||
return !empty($value) || false === $value || 0 === $value;
|
return !empty($value) || false === $value || 0 === $value;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@@ -69,7 +69,7 @@ class RavenHandler extends AbstractProcessingHandler
|
|||||||
$level = $this->level;
|
$level = $this->level;
|
||||||
|
|
||||||
// filter records based on their 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;
|
return $record['level'] >= $level;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ class RavenHandler extends AbstractProcessingHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
// the record with the highest severity is the "main" one
|
// 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']) {
|
if ($record['level'] >= $highest['level']) {
|
||||||
return $record;
|
return $record;
|
||||||
}
|
}
|
||||||
|
@@ -105,7 +105,7 @@ class RotatingFileHandler extends StreamHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Sorting the files by name to remove the older ones
|
// Sorting the files by name to remove the older ones
|
||||||
usort($logFiles, function($a, $b) {
|
usort($logFiles, function ($a, $b) {
|
||||||
return strcmp($b, $a);
|
return strcmp($b, $a);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -56,12 +56,9 @@ class IntrospectionProcessor
|
|||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
while (isset($trace[$i]['class']))
|
while (isset($trace[$i]['class'])) {
|
||||||
{
|
foreach ($this->skipClassesPartials as $part) {
|
||||||
foreach ($this->skipClassesPartials as $part)
|
if (strpos($trace[$i]['class'], $part) !== false) {
|
||||||
{
|
|
||||||
if (strpos($trace[$i]['class'], $part) !== false)
|
|
||||||
{
|
|
||||||
$i++;
|
$i++;
|
||||||
continue 2;
|
continue 2;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user