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