Completed
Branch master (45daeb)
by Carlos
01:57
created
Category
src/Client.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $this->clientId = $clientId;
48 48
         $this->passkey = $passkey;
49
-        $this->client = new Guzzle(['base_uri' => self::ENDPOINT]);
49
+        $this->client = new Guzzle([ 'base_uri' => self::ENDPOINT ]);
50 50
     }
51 51
 
52 52
     /**
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     public function getGroups()
110 110
     {
111
-        return $this->doRequest('/emt-proxy-server/last/bus/GetGroups.php', [])->resultValues;
111
+        return $this->doRequest('/emt-proxy-server/last/bus/GetGroups.php', [ ])->resultValues;
112 112
     }
113 113
 
114 114
     /**
@@ -174,10 +174,10 @@  discard block
 block discarded – undo
174 174
      */
175 175
     protected function doRequest($endpoint, $params)
176 176
     {
177
-        $authParams = ['idClient' => $this->clientId, 'passKey' => $this->passkey];
177
+        $authParams = [ 'idClient' => $this->clientId, 'passKey' => $this->passkey ];
178 178
         $response = $this->client->post(
179 179
             $endpoint,
180
-            ['form_params' => array_merge($params, $authParams)]
180
+            [ 'form_params' => array_merge($params, $authParams) ]
181 181
         );
182 182
 
183 183
         if ($status = $response->getStatusCode() !== 200) {
Please login to merge, or discard this patch.