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 | 11 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | 3 | public function bic($countryCode) |
|
| 13 | { |
||
| 14 | 3 | $filteredCountryCode = strtoupper($countryCode); |
|
| 15 | switch ($filteredCountryCode) { |
||
| 16 | 3 | case 'DE': |
|
| 17 | 2 | return new GermanBic(); |
|
| 18 | |||
| 19 | 1 | default: |
|
| 20 | 1 | throw new ComponentException( |
|
| 21 | 1 | sprintf( |
|
| 22 | 1 | 'Cannot provide BIC validation for country "%s"', |
|
| 23 | $countryCode |
||
| 24 | 1 | ) |
|
| 25 | 1 | ); |
|
| 26 | 1 | } |
|
| 27 | } |
||
| 28 | |||
| 70 |