Completed
Push — master ( e86740...4cff7e )
by Simon
03:33 queued 01:21
created
src/Transactions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @param array $filters
27 27
      * @return mixed
28 28
      */
29
-    public function all($filters = [])
29
+    public function all($filters = [ ])
30 30
     {
31 31
         return $this->client->get('transactions?'.http_build_query($filters));
32 32
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function getByRequestId(string $requestId)
65 65
     {
66
-        $query = ['id_type' => 'request_id'];
66
+        $query = [ 'id_type' => 'request_id' ];
67 67
         return $this->client->get(self::ENDPOINT.'/'.$requestId.'?'.http_build_query($query));
68 68
     }
69 69
 }
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * @param string $mode
75 75
      * @param array $clientOptions
76 76
      */
77
-    public function __construct(string $apiKey, $mode = 'production', array $clientOptions = [])
77
+    public function __construct(string $apiKey, $mode = 'production', array $clientOptions = [ ])
78 78
     {
79 79
         $this->apiKey = $apiKey;
80 80
         $this->mode = $mode;
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     {
107 107
         $options = [
108 108
             'headers' => [
109
-                'Authorization' => 'Bearer ' . $this->apiKey,
109
+                'Authorization' => 'Bearer '.$this->apiKey,
110 110
             ]
111 111
         ];
112 112
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function post($endpoint, $json)
140 140
     {
141
-        $response = $this->httpClient->request('POST', $this->buildBaseUrl().$endpoint, ['json' => $json]);
141
+        $response = $this->httpClient->request('POST', $this->buildBaseUrl().$endpoint, [ 'json' => $json ]);
142 142
         return $this->handleResponse($response);
143 143
     }
144 144
 
Please login to merge, or discard this patch.