Conditions | 3 |
Paths | 3 |
Total Lines | 19 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3.054 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | 66 | protected function handleDeprecatedConfigValues() |
|
30 | { |
||
31 | $renamedConfigValues = [ |
||
32 | |||
33 | /* |
||
34 | * Earlier versions of the package used filesystems instead of disks |
||
35 | */ |
||
36 | [ |
||
37 | 66 | 'oldName' => 'lern.notify.pushover.user', |
|
38 | 66 | 'newName' => 'lern.notify.pushover.users', |
|
39 | 66 | ], |
|
40 | 66 | ]; |
|
41 | |||
42 | 66 | foreach ($renamedConfigValues as $renamedConfigValue) { |
|
43 | 66 | if (config($renamedConfigValue['oldName'])) { |
|
44 | config([$renamedConfigValue['newName'] => config($renamedConfigValue['oldName'])]); |
||
45 | } |
||
46 | 66 | } |
|
47 | } |
||
48 | } |