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