Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3.054 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 69 | protected function handleDeprecatedConfigValues() |
|
29 | { |
||
30 | $renamedConfigValues = [ |
||
31 | [ |
||
32 | 69 | 'oldName' => 'lern.notify.pushover.user', |
|
33 | 69 | 'newName' => 'lern.notify.pushover.users', |
|
34 | 69 | ], |
|
35 | 69 | ]; |
|
36 | |||
37 | 69 | foreach ($renamedConfigValues as $renamedConfigValue) { |
|
38 | 69 | if (config($renamedConfigValue['oldName'])) { |
|
39 | config([$renamedConfigValue['newName'] => config($renamedConfigValue['oldName'])]); |
||
40 | } |
||
41 | 69 | } |
|
42 | } |
||
43 | } |