1
0
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:
Ivan Kurnosov
2017-02-27 15:41:41 +13:00
parent 7f7d5e1f44
commit 9e43ef06d8

View File

@@ -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;
}