| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3.2098 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | 1 | public static function findByShortCode($shortCode) |
|
| 48 | { |
||
| 49 | 1 | if (!isset(self::$items[$shortCode])) { |
|
| 50 | 1 | $country = self::getLoader()->loadCountry($shortCode); |
|
| 51 | 1 | if (!$country) { |
|
| 52 | return; |
||
| 53 | } |
||
| 54 | |||
| 55 | 1 | return self::$items[$shortCode] = self::getMapper()->mapArrayToEntity($country); |
|
| 56 | } |
||
| 57 | |||
| 58 | return self::$items[$shortCode]; |
||
| 59 | } |
||
| 60 | |||
| 85 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..