1
0
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:
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); 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;
} }