mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-03 19:57:41 +02:00
CS fixes
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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);
|
||||
});
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user