Completed
Push — develop ( db547a...eaa9a9 )
by Jamie
02:16
created
src/Eventbrite.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -57,10 +57,10 @@  discard block
 block discarded – undo
57 57
     public function __construct($token, $config = [])
58 58
     {
59 59
         $default_config = [
60
-          'base_uri' => 'https://www.eventbriteapi.com/v3/',
61
-          // Turn exceptions off so we can handle the responses ourselves.
62
-          'exceptions' => false,
63
-          'timeout' => 30,
60
+            'base_uri' => 'https://www.eventbriteapi.com/v3/',
61
+            // Turn exceptions off so we can handle the responses ourselves.
62
+            'exceptions' => false,
63
+            'timeout' => 30,
64 64
         ];
65 65
         $config = array_merge($config, $default_config);
66 66
         // Add this last so it's always there and isn't overwritten.
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             } else {
109 109
                 // This only really happens when the network is interrupted.
110 110
                 throw new BadResponseException('A bad response was received.',
111
-                  $request);
111
+                    $request);
112 112
             }
113 113
         } else {
114 114
             throw new \Exception('Unrecognised HTTP verb.');
@@ -182,9 +182,9 @@  discard block
 block discarded – undo
182 182
     {
183 183
         $body = $response->getBody()->getContents();
184 184
         return [
185
-          'code' => $response->getStatusCode(),
186
-          'headers' => $response->getHeaders(),
187
-          'body' => ($this->isValidJson($body)) ? json_decode($body,
185
+            'code' => $response->getStatusCode(),
186
+            'headers' => $response->getHeaders(),
187
+            'body' => ($this->isValidJson($body)) ? json_decode($body,
188 188
             true) : $body,
189 189
         ];
190 190
     }
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
     public function post($endpoint, $params = null, $body = null, $headers = null, $options = [])
250 250
     {
251 251
         return $this->makeRequest('POST', $endpoint, $params, $body, $headers,
252
-          $options);
252
+            $options);
253 253
     }
254 254
 
255 255
     /**
Please login to merge, or discard this patch.