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 |
||
42 | public function bank($countryCode) |
||
43 | { |
||
44 | $filteredCountryCode = strtoupper($countryCode); |
||
45 | switch ($filteredCountryCode) { |
||
46 | case 'DE': |
||
47 | return new GermanBank(); |
||
48 | |||
49 | default: |
||
50 | throw new ComponentException( |
||
51 | sprintf( |
||
52 | 'Cannot provide bank validation for country "%s"', |
||
53 | $countryCode |
||
54 | ) |
||
55 | ); |
||
56 | } |
||
57 | } |
||
58 | |||
80 |