@@ -73,7 +73,7 @@ |
||
73 | 73 | * |
74 | 74 | * @throws \Exception |
75 | 75 | * |
76 | - * @return array |
|
76 | + * @return \Psr\Http\Message\ResponseInterface |
|
77 | 77 | */ |
78 | 78 | public function getInvoicePdf($invoiceId) |
79 | 79 | { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * @param string $token |
38 | 38 | * @param int $organizationId |
39 | - * @param \Doctrine\Common\Cache\Cache|null $cache |
|
39 | + * @param Cache $cache |
|
40 | 40 | * @param int $ttl |
41 | 41 | */ |
42 | 42 | public function __construct($token, $organizationId, Cache $cache, $ttl = 7200) |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
76 | - * @param $key |
|
76 | + * @param string $key |
|
77 | 77 | * |
78 | 78 | * @throws \LogicException |
79 | 79 | * |
@@ -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; |
@@ -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 | } |