Passed
Push — develop ( 75d482...be1013 )
by Alex
01:52
created
src/ZoomAPI.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 use GuzzleHttp\Client;
6 6
 
7
-class ZoomApi{
7
+class ZoomApi {
8 8
 
9 9
     private $apiKey;
10 10
 	private $apiSecret;
@@ -28,14 +28,14 @@  discard block
 block discarded – undo
28 28
         $data['api_key'] = $this->apiKey;
29 29
         $data['api_secret'] = $this->apiSecret;
30 30
 
31
-        try{
32
-            $response = $this->apiClient->post($uri,  [
31
+        try {
32
+            $response = $this->apiClient->post($uri, [
33 33
                 'form_params' => $data
34 34
             ]);
35 35
 
36 36
             // $body = $response->getBody()->getContents();
37 37
             $result = json_decode($response->getBody(), true);
38
-        }catch(GuzzleHttp\Exception\ClientException $ex){
38
+        }catch (GuzzleHttp\Exception\ClientException $ex) {
39 39
             throw $ex;
40 40
         }
41 41
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
         $validTypes = [1, 2, 3, 8];
75 75
 
76
-        if(!in_array($type, $validTypes)){
76
+        if (!in_array($type, $validTypes)) {
77 77
             throw new \InvalidArgumentException('Invalid `type` passed. Possible values for `type` are ' . implode(", ", $validTypes));
78 78
         }
79 79
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
         $invalidDataKeys = array_diff_key($data, $optionalFields);
104 104
 
105
-        if(!empty($invalidDataKeys)){
105
+        if (!empty($invalidDataKeys)) {
106 106
             throw new \InvalidArgumentException('Invalid data passed. `' . implode(", ", $invalidDataKeys) . '` are not allowed.');
107 107
         }
108 108
 
Please login to merge, or discard this patch.