1 | <?php |
||
13 | class SummonerApi extends BaseApi |
||
14 | { |
||
15 | const API_URL_SUMMONER_BY_NAME = '/lol/summoner/v4/summoners/by-name/{summonerName}'; |
||
16 | const API_URL_SUMMONER_BY_ID = '/lol/summoner/v4/summoners/{encryptedSummonerId}'; |
||
17 | const API_URL_SUMMONER_BY_ACCOUNT_ID = '/lol/summoner/v4/summoners/by-account/{encryptedAccountId}'; |
||
18 | |||
19 | /** |
||
20 | * @param string $summonerName |
||
21 | * |
||
22 | * @return ApiResult |
||
23 | */ |
||
24 | public function getSummonerBySummonerName($summonerName) |
||
30 | 1 | ||
31 | /** |
||
32 | * @param string $summonerId |
||
|
|||
33 | * |
||
34 | * @return ApiResult |
||
35 | */ |
||
36 | public function getSummonerBySummonerId($encryptedSummonerId) |
||
42 | 1 | ||
43 | /** |
||
44 | * @param string $accountId |
||
45 | * |
||
46 | * @return ApiResult |
||
47 | */ |
||
48 | public function getSummonerByAccountId($encryptedAccountId) |
||
54 | } |
||
55 |
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.