@@ -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 | } |
@@ -36,6 +36,6 @@ |
||
36 | 36 | */ |
37 | 37 | public function getMessage($responseCode) |
38 | 38 | { |
39 | - return $this->messages[$responseCode]; |
|
39 | + return $this->messages[ $responseCode ]; |
|
40 | 40 | } |
41 | 41 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @var array |
65 | 65 | */ |
66 | - protected $metadata = []; |
|
66 | + protected $metadata = [ ]; |
|
67 | 67 | |
68 | 68 | /** |
69 | 69 | * Balance. |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * |
78 | 78 | * @var array |
79 | 79 | */ |
80 | - protected $attachments = []; |
|
80 | + protected $attachments = [ ]; |
|
81 | 81 | |
82 | 82 | /** |
83 | 83 | * Category. |