1 | <?php |
||
20 | class DeathByCaptcha extends HttpDeathByCaptchaAbstract implements DeathByCaptchaInterface |
||
21 | { |
||
22 | /** |
||
23 | * URL do serviço |
||
24 | */ |
||
25 | const API_URL = 'http://api.dbcapi.me/api/'; |
||
26 | |||
27 | /** |
||
28 | * API Version |
||
29 | */ |
||
30 | const API_VERSION = 'DBC/PHP v5'; |
||
31 | |||
32 | /** |
||
33 | * Request DEFAULT TIMEOUT |
||
34 | */ |
||
35 | const DEFAULT_TIMEOUT = 60; |
||
36 | |||
37 | /** |
||
38 | * @param string $username |
||
39 | * @param string $password |
||
40 | * @param ClientInterface|null $client |
||
|
|||
41 | * @param AccountInterface|null $account |
||
42 | * @param StatusInterface|null $status |
||
43 | */ |
||
44 | 81 | public function __construct( |
|
57 | |||
58 | 81 | public function setHttpClient(ClientInterface $client) |
|
64 | |||
65 | 39 | public function account(): AccountInterface |
|
72 | |||
73 | 18 | public function status(): StatusInterface |
|
80 | |||
81 | 3 | public function report(int $id): ReportInterface |
|
88 | |||
89 | 21 | public function resolve($captcha): ResolveInterface |
|
103 | |||
104 | public function resolveV2(string $mix, string $url = null): ResolveInterface |
||
115 | } |
||
116 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.