| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 2 | public function jsonSerialize(): object |
|
| 27 | { |
||
| 28 | 2 | $addresses = [ ]; |
|
| 29 | |||
| 30 | 2 | foreach ($this->recipients as $recipient) { |
|
| 31 | 2 | $addresses = array_merge($addresses, (array) $recipient->jsonSerialize()); |
|
| 32 | } |
||
| 33 | |||
| 34 | return (object) [ |
||
| 35 | 2 | 'jsonrpc' => Command::JSON_RPC_VERSION, |
|
| 36 | 'id' => Command::ID, |
||
| 37 | 2 | 'method' => self::METHOD, |
|
| 38 | 2 | 'params' => [ $this->transactions, (object) $addresses ] |
|
| 39 | ]; |
||
| 42 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.