mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 13:16:39 +02:00
Minor code readability improvement
This commit is contained in:
@@ -309,16 +309,11 @@ class Logger implements LoggerInterface
|
||||
}
|
||||
|
||||
reset($this->handlers);
|
||||
$skip = true;
|
||||
while ($handler = current($this->handlers)) {
|
||||
if ($skip) {
|
||||
if ($key !== key($this->handlers)) {
|
||||
next($this->handlers);
|
||||
continue;
|
||||
}
|
||||
$skip = false;
|
||||
}
|
||||
while ($key !== key($this->handlers)) {
|
||||
next($this->handlers);
|
||||
}
|
||||
|
||||
while ($handler = current($this->handlers)) {
|
||||
if (true === $handler->handle($record)) {
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user