1 | <?php |
||
19 | class TibiaDataApi |
||
20 | { |
||
21 | /**s |
||
22 | * @var Client |
||
23 | */ |
||
24 | protected $httpClient; |
||
25 | |||
26 | /** |
||
27 | * TibiaDataApi constructor. |
||
28 | * @param Container $container |
||
|
|||
29 | */ |
||
30 | public function __construct() |
||
36 | |||
37 | /** |
||
38 | * @return Client |
||
39 | */ |
||
40 | public function getHttpClient() |
||
44 | |||
45 | /** |
||
46 | * @return CharactersResource|mixed |
||
47 | * @throws \Illuminate\Contracts\Container\BindingResolutionException |
||
48 | */ |
||
49 | public function characters() |
||
53 | |||
54 | /** |
||
55 | * @return GuildResource|mixed |
||
56 | * @throws \Illuminate\Contracts\Container\BindingResolutionException |
||
57 | */ |
||
58 | public function guild() |
||
62 | |||
63 | /** |
||
64 | * @return GuildsResource|mixed |
||
65 | * @throws \Illuminate\Contracts\Container\BindingResolutionException |
||
66 | */ |
||
67 | public function guilds() |
||
71 | |||
72 | /** |
||
73 | * @return HighscoresResource|mixed |
||
74 | * @throws \Illuminate\Contracts\Container\BindingResolutionException |
||
75 | */ |
||
76 | public function highscores() |
||
80 | |||
81 | /** |
||
82 | * @return HousesResource|mixed |
||
83 | * @throws \Illuminate\Contracts\Container\BindingResolutionException |
||
84 | */ |
||
85 | public function houses() |
||
89 | |||
90 | /** |
||
91 | * @return NewsResource|mixed |
||
92 | * @throws \Illuminate\Contracts\Container\BindingResolutionException |
||
93 | */ |
||
94 | public function news() |
||
98 | |||
99 | /** |
||
100 | * @return WorldsResource|mixed |
||
101 | * @throws \Illuminate\Contracts\Container\BindingResolutionException |
||
102 | */ |
||
103 | public function worlds() |
||
107 | } |
||
108 |
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.