Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public static function getInstance(string $channel, string $filePath): Logger |
||
27 | { |
||
28 | if (!isset(self::$instances[$key = $channel.$filePath])) { |
||
29 | self::$instances[$key] = new Logger($channel, array( |
||
30 | new StreamHandler($filePath), |
||
31 | )); |
||
32 | } |
||
33 | |||
34 | return self::$instances[$key]; |
||
35 | } |
||
37 |