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