| Conditions | 4 |
| Paths | 8 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function rules() |
||
| 25 | { |
||
| 26 | $filter = 'in:'; |
||
| 27 | if(config('paymentprovider.sofortConfigKey')) { |
||
| 28 | $filter .= 'Klarna,'; |
||
| 29 | } |
||
| 30 | if(config('paymentprovider.payPalClientSecret')) { |
||
| 31 | $filter .= 'PayPal,'; |
||
| 32 | } |
||
| 33 | if(config('paymentprovider.mollieApiKey')) { |
||
| 34 | $filter .= 'Mollie'; |
||
| 35 | } |
||
| 36 | return [ |
||
| 37 | 'paymethod' => [ |
||
| 38 | 'required', |
||
| 39 | $filter |
||
| 40 | ] |
||
| 44 |