@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | foreach ($filters as $key => $filter) { |
39 | 39 | if (array_key_exists($key, current($hit))) { |
40 | - $hit = array_filter($hit, function ($element) use ($key, $filter) { |
|
40 | + $hit = array_filter($hit, function($element) use ($key, $filter) { |
|
41 | 41 | return $element[$key] == $filter; |
42 | 42 | }); |
43 | 43 | } |
@@ -124,7 +124,7 @@ |
||
124 | 124 | { |
125 | 125 | foreach ($filters as $key => $filter) { |
126 | 126 | if (array_key_exists($key, current($plans))) { |
127 | - $plans = array_filter($plans, function ($element) use ($key, $filter) { |
|
127 | + $plans = array_filter($plans, function($element) use ($key, $filter) { |
|
128 | 128 | return $element[$key] == $filter; |
129 | 129 | }); |
130 | 130 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $this->cache = $cache; |
48 | 48 | $this->client = new GuzzleClient([ |
49 | 49 | 'headers' => [ |
50 | - 'Authorization' => 'Zoho-authtoken '.$token, |
|
50 | + 'Authorization' => 'Zoho-authtoken ' . $token, |
|
51 | 51 | 'X-com-zoho-subscriptions-organizationid' => $organizationId, |
52 | 52 | ], |
53 | 53 | 'base_uri' => 'https://subscriptions.zoho.com/api/v1/', |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $data = json_decode($response->getBody(), true); |
67 | 67 | |
68 | 68 | if ($data['code'] != 0) { |
69 | - throw new \Exception('Zoho Api subscription error : '.$data['message']); |
|
69 | + throw new \Exception('Zoho Api subscription error : ' . $data['message']); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | return $data; |