| 1 | <?php |
||
| 9 | abstract class BaseOAuthProvider implements OAuthProviderInterface |
||
| 10 | { |
||
| 11 | const GET = 'GET'; |
||
| 12 | const POST = 'POST'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var Client |
||
| 16 | */ |
||
| 17 | protected $client; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | protected $credentials; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * BaseOAuthProvider constructor. |
||
| 26 | * |
||
| 27 | * @param $client |
||
| 28 | */ |
||
| 29 | public function __construct($client) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param array $credentials |
||
| 36 | */ |
||
| 37 | public function setCredentials(array $credentials) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param $url |
||
| 44 | * @param null $content |
||
|
|
|||
| 45 | * @param $headers |
||
| 46 | * @param $method |
||
| 47 | * |
||
| 48 | * @return mixed|\Psr\Http\Message\ResponseInterface |
||
| 49 | */ |
||
| 50 | protected function doRequest($url, $method, array $options = []) |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @param $url |
||
| 69 | * @param array $parameters |
||
| 70 | * |
||
| 71 | * @return string |
||
| 72 | */ |
||
| 73 | protected function normalizeUrl($url, array $parameters = array()) |
||
| 82 | } |
||
| 83 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.