| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 2 | protected function extractParameters(\DOMNode $node): void |
|
| 33 | { |
||
| 34 | 2 | $amount = $node->attributes->getNamedItem('amount')->nodeValue |
|
|
|
|||
| 35 | 2 | ?? $this->cache->get("{$this->prefix}_amount"); |
|
| 36 | |||
| 37 | 2 | if (! $amount) { |
|
| 38 | 1 | throw new \Exception("Arg 'amount' is required."); |
|
| 39 | } |
||
| 40 | |||
| 41 | 1 | $this->amount = (float) $amount; |
|
| 42 | |||
| 43 | 1 | $this->currency = $node->attributes->getNamedItem('currency')->nodeValue |
|
| 44 | 1 | ?? $this->cache->get("{$this->prefix}_currency", 'UGX'); |
|
| 45 | } |
||
| 47 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.