| 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 |
||
| 31 | 63 | protected function handleDeprecatedConfigValues() |
|
| 32 | { |
||
| 33 | $renamedConfigValues = [ |
||
| 34 | |||
| 35 | /* |
||
| 36 | * Earlier versions of the package used filesystems instead of disks |
||
| 37 | */ |
||
| 38 | [ |
||
| 39 | 63 | 'oldName' => 'lern.notify.pushover.user', |
|
| 40 | 63 | 'newName' => 'lern.notify.pushover.users', |
|
| 41 | 63 | ], |
|
| 42 | 63 | ]; |
|
| 43 | |||
| 44 | 63 | foreach ($renamedConfigValues as $renamedConfigValue) { |
|
| 45 | 63 | if (config($renamedConfigValue['oldName'])) { |
|
| 46 | config([$renamedConfigValue['newName'] => config($renamedConfigValue['oldName'])]); |
||
| 47 | } |
||
| 48 | 63 | } |
|
| 49 | } |
||
| 50 | } |