Skip to content

Commit eeb7b32

Browse files
committed
Re-order internal methods for pendantry
1 parent ba2cef9 commit eeb7b32

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/PsrLogAdapter.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ public static function addLogger(LoggerInterface $logger): void
5454
addSubscriber($instance);
5555
}
5656

57+
public static function removeLogger(LoggerInterface $logger): void
58+
{
59+
$instance = self::getInstance();
60+
$instance->loggers->detach($logger);
61+
62+
if ($instance->loggers->count() === 0) {
63+
removeSubscriber($instance);
64+
}
65+
}
66+
5767
/**
5868
* Pipes a log message from PHPC to all registered PSR loggers.
5969
*
@@ -82,16 +92,6 @@ public function log(int $level, string $domain, string $message): void
8292
}
8393
}
8494

85-
public static function removeLogger(LoggerInterface $logger): void
86-
{
87-
$instance = self::getInstance();
88-
$instance->loggers->detach($logger);
89-
90-
if ($instance->loggers->count() === 0) {
91-
removeSubscriber($instance);
92-
}
93-
}
94-
9595
/**
9696
* Writes a log message to all registered PSR loggers.
9797
*

0 commit comments

Comments
 (0)