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