Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | public function download(string $accessToken, int $fileId, array $params = []) |
||
|
|||
41 | { |
||
42 | return $this->clientHandler->toJson( |
||
43 | $this->clientHandler->setAccessToken($accessToken)->post( |
||
44 | $this->baseUrl . '/download', |
||
45 | [ |
||
46 | RequestOptions::HEADERS => [ |
||
47 | // If the accept header dont set, this won't run (response: 406 Not Acceptable) |
||
48 | 'Accept' => 'application/json', |
||
49 | 'Content-Type' => 'multipart/form-data', |
||
50 | ], |
||
51 | RequestOptions::FORM_PARAMS => ['file_id' => $fileId], |
||
52 | ] |
||
57 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.