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