| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public function getCountryShortName(): ?string |
||
| 45 | { |
||
| 46 | $langCode = $this->getCountry() ?? ''; |
||
| 47 | if (empty($langCode)) { |
||
| 48 | return null; |
||
| 49 | } |
||
| 50 | |||
| 51 | if (array_key_exists($langCode, self::ISBN_LANGUAGE_CODES)) { |
||
| 52 | return self::ISBN_LANGUAGE_CODES[$langCode]; |
||
| 53 | } |
||
| 54 | |||
| 55 | return null; |
||
| 56 | } |
||
| 58 |