Completed
Push — master ( cdb73e...fb348d )
by Mathew
02:04
created
src/Client/Transactions.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Http/ResponseCodes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,6 +36,6 @@
 block discarded – undo
36 36
      */
37 37
     public function getMessage($responseCode)
38 38
     {
39
-        return $this->messages[$responseCode];
39
+        return $this->messages[ $responseCode ];
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
src/Response/Transactions/Transaction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
77 77
      *
78 78
      * @var array
79 79
      */
80
-    protected $attachments = [];
80
+    protected $attachments = [ ];
81 81
 
82 82
     /**
83 83
      * Category.
Please login to merge, or discard this patch.