1 | <?php |
||
13 | class SummonerApi extends BaseApi |
||
14 | { |
||
15 | const API_URL_SUMMONER_BY_NAME = '/lol/summoner/v3/summoners/by-name/{summonerName}'; |
||
16 | const API_URL_SUMMONER_BY_ID = '/lol/summoner/v3/summoners/{summonerId}'; |
||
17 | const API_URL_SUMMONER_BY_ACCOUNT_ID = '/lol/summoner/v3/summoners/by-account/{accountId}'; |
||
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($summonerId) |
||
42 | 1 | ||
43 | /** |
||
44 | * @param string $accountId |
||
45 | * |
||
46 | * @return ApiResult |
||
47 | */ |
||
48 | public function getSummonerByAccountId($accountId) |
||
54 | } |
||
55 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.