@@ -76,6 +76,9 @@ |
||
76 | 76 | return $response; |
77 | 77 | } |
78 | 78 | |
79 | + /** |
|
80 | + * @param string $method |
|
81 | + */ |
|
79 | 82 | private function generateStreamContext($body, $headers, $method) |
80 | 83 | { |
81 | 84 | return stream_context_create( |
@@ -191,7 +191,7 @@ |
||
191 | 191 | } |
192 | 192 | |
193 | 193 | /** |
194 | - * @return Session |
|
194 | + * @return SessionInterface |
|
195 | 195 | */ |
196 | 196 | public function getSession() |
197 | 197 | { |
@@ -107,7 +107,7 @@ |
||
107 | 107 | /** |
108 | 108 | * Set the scopes for permissions |
109 | 109 | * @see https://www.etsy.com/developers/documentation/getting_started/oauth#section_permission_scopes |
110 | - * @param array $scopes |
|
110 | + * @param string[] $scopes |
|
111 | 111 | * |
112 | 112 | * @return $this |
113 | 113 | */ |
@@ -54,7 +54,6 @@ |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
57 | - * @param string $authorizationEndpoint |
|
58 | 57 | * |
59 | 58 | * @throws Exception |
60 | 59 | */ |
@@ -96,6 +96,9 @@ |
||
96 | 96 | return $code; |
97 | 97 | } |
98 | 98 | |
99 | + /** |
|
100 | + * @param string $responseBody |
|
101 | + */ |
|
99 | 102 | protected function parseRequestTokenResponse($responseBody) |
100 | 103 | { |
101 | 104 | parse_str($responseBody, $data); |
@@ -153,6 +153,10 @@ discard block |
||
153 | 153 | ); |
154 | 154 | } |
155 | 155 | |
156 | + /** |
|
157 | + * @param \PHPUnit\Framework\MockObject\MockObject $client |
|
158 | + * @param \PHPUnit\Framework\MockObject\MockObject $storage |
|
159 | + */ |
|
156 | 160 | protected function getQuickBooks( |
157 | 161 | ?ClientInterface $client = null, |
158 | 162 | ?TokenStorageInterface $storage = null |
@@ -177,6 +181,9 @@ discard block |
||
177 | 181 | ); |
178 | 182 | } |
179 | 183 | |
184 | + /** |
|
185 | + * @param string $response |
|
186 | + */ |
|
180 | 187 | protected function getQuickBooksForRequestingAccessToken( |
181 | 188 | TokenInterface $token, |
182 | 189 | $response |
@@ -68,7 +68,7 @@ |
||
68 | 68 | /** |
69 | 69 | * @param DoliDB $db Database object |
70 | 70 | * @param Conf $conf Conf object |
71 | - * @param string $userid userid of user |
|
71 | + * @param integer $userid userid of user |
|
72 | 72 | */ |
73 | 73 | public function __construct(DoliDB $db, $conf, $userid = 0) |
74 | 74 | { |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * Additional `curl_setopt` parameters. |
31 | 31 | * |
32 | - * @param array $parameters |
|
32 | + * @param string[] $parameters |
|
33 | 33 | */ |
34 | 34 | public function setCurlParameters(array $parameters): void |
35 | 35 | { |