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