@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * Set the request body |
85 | 85 | * |
86 | - * @param FormBody|string $body |
|
86 | + * @param string $body |
|
87 | 87 | * @return self |
88 | 88 | */ |
89 | 89 | public function setBody($body): self |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | * This is a dirty hack until I can fully track down where |
195 | 195 | * the dual-encoding happens |
196 | 196 | * |
197 | - * @param FormBody $formBody The form builder object to fix |
|
197 | + * @param \Amp\Artax\FormBody $formBody The form builder object to fix |
|
198 | 198 | * @return string |
199 | 199 | */ |
200 | 200 | private function fixBody(FormBody $formBody): string |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * This is a dirty hack until I can fully track down where |
71 | 71 | * the dual-encoding happens |
72 | 72 | * |
73 | - * @param FormBody $formBody The form builder object to fix |
|
73 | + * @param \Amp\Artax\FormBody $formBody The form builder object to fix |
|
74 | 74 | * @return string |
75 | 75 | */ |
76 | 76 | private function fixBody(FormBody $formBody): string |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * @param string $type |
86 | 86 | * @param string $url |
87 | 87 | * @param array $options |
88 | - * @return \Amp\Promise |
|
88 | + * @return \Amp\Artax\Request |
|
89 | 89 | */ |
90 | 90 | public function setUpRequest(string $type, string $url, array $options = []) |
91 | 91 | { |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | /** |
198 | 198 | * Remove some boilerplate for get requests |
199 | 199 | * |
200 | - * @param array $args |
|
200 | + * @param string $args |
|
201 | 201 | * @return array |
202 | 202 | */ |
203 | 203 | protected function getRequest(...$args): array |
@@ -35,16 +35,16 @@ |
||
35 | 35 | protected $requestBuilder; |
36 | 36 | |
37 | 37 | /** |
38 | - * The Guzzle http client object |
|
39 | - * @var object |
|
40 | - */ |
|
41 | - protected $client; |
|
42 | - |
|
43 | - /** |
|
44 | - * Cookie jar object for api requests |
|
45 | - * @var object |
|
46 | - */ |
|
47 | - protected $cookieJar; |
|
38 | + * The Guzzle http client object |
|
39 | + * @var object |
|
40 | + */ |
|
41 | + protected $client; |
|
42 | + |
|
43 | + /** |
|
44 | + * Cookie jar object for api requests |
|
45 | + * @var object |
|
46 | + */ |
|
47 | + protected $cookieJar; |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * The base url for api requests |