| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 3 | public function getConstructorParameters(array $config): array |
|
| 26 | { |
||
| 27 | 3 | $stream = \Yii::getAlias($config['path']); |
|
| 28 | 3 | $level = $config['level'] ?? Logger::DEBUG; |
|
| 29 | 3 | $bubble = $config['bubble'] ?? true; |
|
| 30 | 3 | $filePermission = $config['filePermission'] ?? null; |
|
| 31 | 3 | $useLocking = $config['useLocking'] ?? false; |
|
| 32 | |||
| 33 | 3 | return [$stream, $level, $bubble, $filePermission, $useLocking]; |
|
| 34 | } |
||
| 35 | |||
| 46 |