Completed
Push — master ( 907c5b...51a6a1 )
by Mathew
02:11
created
integration/client_example.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,14 +36,14 @@
 block discarded – undo
36 36
 $outputBlock('Your user ID: ', $ping->whoAmI()->getUserId());
37 37
 
38 38
 $accounts  = new Mondo\Client\Accounts($client);
39
-$accountId = $accounts->getAccounts()->getAccounts()[0]->getId();
39
+$accountId = $accounts->getAccounts()->getAccounts()[ 0 ]->getId();
40 40
 $outputBlock('Your first account ID: ', $accountId);
41 41
 
42 42
 $balance = new Mondo\Client\Balance($client);
43 43
 $outputBlock('Your balance: ', $balance->getBalanceForAccountId($accountId)->getBalance());
44 44
 
45 45
 $transactions  = new Mondo\Client\Transactions($client);
46
-$transactionId = $transactions->getTransactionsForAccountId($accountId)->getTransactions()[0]->getId();
46
+$transactionId = $transactions->getTransactionsForAccountId($accountId)->getTransactions()[ 0 ]->getId();
47 47
 
48 48
 $outputBlock('How many transactions you\'ve made: ', count($transactions->getTransactionsForAccountId($accountId)->getTransactions()));
49 49
 $outputBlock('First transaction: ', $transactions->getTransaction($transactionId)->getDescription());
Please login to merge, or discard this patch.
src/Response/Accounts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      * @var Accounts\Account[]
16 16
      * @JMS\Type("array<Thepixeldeveloper\Mondo\Response\Account>")
17 17
      */
18
-    protected $accounts = [];
18
+    protected $accounts = [ ];
19 19
 
20 20
     /**
21 21
      * @return Accounts\Account[]
Please login to merge, or discard this patch.
src/Response/Transactions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      * @var Transaction[]
19 19
      * @JMS\Type("array<\Thepixeldeveloper\Mondo\Response\Transactions\Transaction>")
20 20
      */
21
-    protected $transactions = [];
21
+    protected $transactions = [ ];
22 22
 
23 23
     /**
24 24
      * @return Transactions\Transaction[]
Please login to merge, or discard this patch.
src/Client/Transactions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
     public function addAnnotationForTransaction($transactionId, $key, $value = null)
71 71
     {
72 72
         if (is_string($key)) {
73
-            $metadata = [$key => $value];
73
+            $metadata = [ $key => $value ];
74 74
         } else {
75 75
             $metadata = $key;
76 76
         }
77 77
 
78 78
         return $this->client->get('/transactions/' . $transactionId, [
79
-            'body' => ['metadata' => $metadata],
79
+            'body' => [ 'metadata' => $metadata ],
80 80
         ]);
81 81
     }
82 82
 
@@ -91,13 +91,13 @@  discard block
 block discarded – undo
91 91
     public function removeAnnotationForTransaction($transactionId, $keys)
92 92
     {
93 93
         if (is_string($keys)) {
94
-            $keys = [$keys];
94
+            $keys = [ $keys ];
95 95
         }
96 96
 
97 97
         $keys = array_flip($keys);
98 98
 
99 99
         return $this->client->get('/transactions/' . $transactionId, [
100
-            'body' => ['metadata' => $keys],
100
+            'body' => [ 'metadata' => $keys ],
101 101
         ]);
102 102
     }
103 103
 }
Please login to merge, or discard this patch.