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 |
||
| 22 | 3 | public function bic($countryCode) |
|
| 23 | { |
||
| 24 | 3 | $filteredCountryCode = mb_strtoupper($countryCode); |
|
| 25 | switch ($filteredCountryCode) { |
||
| 26 | 3 | case 'DE': |
|
| 27 | 2 | return new GermanBic(); |
|
| 28 | |||
| 29 | default: |
||
| 30 | 1 | throw new ComponentException( |
|
| 31 | sprintf( |
||
| 32 | 1 | 'Cannot provide BIC validation for country "%s"', |
|
| 33 | $countryCode |
||
| 34 | ) |
||
| 35 | ); |
||
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 80 |