@@ -26,7 +26,7 @@ |
||
26 | 26 | ); |
27 | 27 | } |
28 | 28 | |
29 | - array_walk($decoded->capabilities, function ($item) { |
|
29 | + array_walk($decoded->capabilities, function($item) { |
|
30 | 30 | if (!is_string($item)) { |
31 | 31 | throw new JsonFormatException("JSON property `capabilities` must only contain strings."); |
32 | 32 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | 'id' => Command::ID, |
30 | 30 | 'method' => self::METHOD, |
31 | 31 | 'params' => array_merge( |
32 | - [ $this->ip, (string) $this->command], |
|
32 | + [ $this->ip, (string) $this->command ], |
|
33 | 33 | !is_null($this->banTime) ? [ $this->banTime ] : [ ], |
34 | 34 | !is_null($this->absolute) && !is_null($this->banTime) ? [ $this->absolute ] : [ ] |
35 | 35 | ) |
@@ -16,8 +16,8 @@ discard block |
||
16 | 16 | */ |
17 | 17 | public function __construct(array $transactions, array $recipients) |
18 | 18 | { |
19 | - call_user_func_array(function (RawTransaction ...$t) {}, $transactions); |
|
20 | - call_user_func_array(function (Recipient ...$r) {}, $recipients); |
|
19 | + call_user_func_array(function(RawTransaction ...$t) {}, $transactions); |
|
20 | + call_user_func_array(function(Recipient ...$r) {}, $recipients); |
|
21 | 21 | |
22 | 22 | $this->transactions = $transactions; |
23 | 23 | $this->recipients = $recipients; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | public function jsonSerialize(): object |
27 | 27 | { |
28 | - $addresses = []; |
|
28 | + $addresses = [ ]; |
|
29 | 29 | |
30 | 30 | foreach ($this->recipients as $recipient) { |
31 | 31 | $addresses = array_merge($addresses, (array) $recipient->jsonSerialize()); |