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