@@ -31,6 +31,6 @@ |
||
31 | 31 | */ |
32 | 32 | public function getMessage($responseCode) |
33 | 33 | { |
34 | - return ResponseCodes::MESSAGES[$responseCode]; |
|
34 | + return ResponseCodes::MESSAGES[ $responseCode ]; |
|
35 | 35 | } |
36 | 36 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | public function getTransactionsForAccountId($accountId) |
44 | 44 | { |
45 | 45 | return $this->client->request('GET', '/transactions', [ |
46 | - 'query' => ['account_id' => $accountId], |
|
46 | + 'query' => [ 'account_id' => $accountId ], |
|
47 | 47 | ]); |
48 | 48 | } |
49 | 49 | |
@@ -59,13 +59,13 @@ discard block |
||
59 | 59 | public function addAnnotationForTransaction($transactionId, $key, $value = null) |
60 | 60 | { |
61 | 61 | if (is_string($key)) { |
62 | - $metadata = [$key => $value]; |
|
62 | + $metadata = [ $key => $value ]; |
|
63 | 63 | } else { |
64 | 64 | $metadata = $key; |
65 | 65 | } |
66 | 66 | |
67 | 67 | return $this->client->request('GET', '/transactions/' . $transactionId, [ |
68 | - 'body' => ['metadata' => $metadata], |
|
68 | + 'body' => [ 'metadata' => $metadata ], |
|
69 | 69 | ]); |
70 | 70 | } |
71 | 71 | |
@@ -80,13 +80,13 @@ discard block |
||
80 | 80 | public function removeAnnotationForTransaction($transactionId, $keys) |
81 | 81 | { |
82 | 82 | if (is_string($keys)) { |
83 | - $keys = [$keys]; |
|
83 | + $keys = [ $keys ]; |
|
84 | 84 | } |
85 | 85 | |
86 | 86 | $keys = array_flip($keys); |
87 | 87 | |
88 | 88 | return $this->client->request('GET', '/transactions/' . $transactionId, [ |
89 | - 'body' => ['metadata' => $keys], |
|
89 | + 'body' => [ 'metadata' => $keys ], |
|
90 | 90 | ]); |
91 | 91 | } |
92 | 92 | } |