| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 51 | private function initializeCurrenciesFile($resourcesDir) |
||
| 52 | { |
||
| 53 | if (!$this->currencies) { |
||
| 54 | $currenciesFile = getcwd() . '/' . $resourcesDir . '/' . static::CURRENCIES_FILE; |
||
| 55 | $currenciesArray = json_decode(file_get_contents($currenciesFile), true); |
||
| 56 | $this->currencies = $currenciesArray['ReferenceServiceResponseDto']['Currencies']['CurrencyDto']; |
||
| 57 | } |
||
| 58 | } |
||
| 59 | } |
||
| 60 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.