Passed
Pull Request — master (#13)
by Martin
07:24
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/Rates.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function get(string $from, string $to, float $amount)
30 30
     {
31
-        $params = ['from' => $from, 'to' => $to, 'amount' => $amount];
31
+        $params = [ 'from' => $from, 'to' => $to, 'amount' => $amount ];
32 32
         return $this->client->get(self::ENDPOINT.'?'.http_build_query($params));
33 33
     }
34 34
 }
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
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * @param string $mode
86 86
      * @param array $clientOptions
87 87
      */
88
-    public function __construct(AccessToken $accessToken, $mode = 'production', array $clientOptions = [])
88
+    public function __construct(AccessToken $accessToken, $mode = 'production', array $clientOptions = [ ])
89 89
     {
90 90
         $this->accessToken = $accessToken;
91 91
         $this->mode = $mode;
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     {
120 120
         $options = [
121 121
             'headers' => [
122
-                'Authorization' => 'Bearer ' . $this->accessToken->getToken(),
122
+                'Authorization' => 'Bearer '.$this->accessToken->getToken(),
123 123
             ]
124 124
         ];
125 125
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      */
152 152
     public function post($endpoint, $json)
153 153
     {
154
-        $response = $this->httpClient->request('POST', $this->buildBaseUrl().$endpoint, ['json' => $json]);
154
+        $response = $this->httpClient->request('POST', $this->buildBaseUrl().$endpoint, [ 'json' => $json ]);
155 155
         return $this->handleResponse($response);
156 156
     }
157 157
 
Please login to merge, or discard this patch.