We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | 3 | public function bank($countryCode) |
|
| 43 | { |
||
| 44 | 3 | $filteredCountryCode = mb_strtoupper($countryCode); |
|
| 45 | switch ($filteredCountryCode) { |
||
| 46 | 3 | case 'DE': |
|
| 47 | 2 | return new GermanBank(); |
|
| 48 | |||
| 49 | default: |
||
| 50 | 1 | throw new ComponentException( |
|
| 51 | sprintf( |
||
| 52 | 1 | 'Cannot provide bank validation for country "%s"', |
|
| 53 | $countryCode |
||
| 54 | ) |
||
| 55 | ); |
||
| 56 | } |
||
| 57 | } |
||
| 58 | |||
| 80 |