Completed
Pull Request — master (#12)
by
unknown
02:20
created
lib/Api/Invoice.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
lib/Client/Client.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
73 73
     }
74 74
 
75 75
     /**
76
-     * @param $key
76
+     * @param string $key
77 77
      *
78 78
      * @throws \LogicException
79 79
      *
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
lib/Api/Addon.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
lib/Api/Plan.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.