1 | <?php |
||
10 | class Twitter extends AbstractService |
||
11 | { |
||
12 | const ENDPOINT_AUTHENTICATE = "https://api.twitter.com/oauth/authenticate"; |
||
13 | const ENDPOINT_AUTHORIZE = "https://api.twitter.com/oauth/authorize"; |
||
14 | |||
15 | protected $authorizationEndpoint = self::ENDPOINT_AUTHENTICATE; |
||
16 | |||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | public function init() |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | public function getRequestTokenEndpoint() |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function getAuthorizationEndpoint() |
||
46 | |||
47 | /** |
||
48 | * @param string $authorizationEndpoint |
||
|
|||
49 | * |
||
50 | * @throws Exception |
||
51 | */ |
||
52 | public function setAuthorizationEndpoint($endpoint) |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function getAccessTokenEndpoint() |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | protected function parseRequestTokenResponse($responseBody) |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | protected function parseAccessTokenResponse($responseBody) |
||
114 | } |
||
115 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.