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