1 | <?php |
||
13 | class GravatarModel implements ConfigureInterface, InjectionAwareInterface |
||
14 | { |
||
15 | use ConfigureTrait; |
||
16 | use InjectionAwareTrait; |
||
17 | |||
18 | /** |
||
19 | * Get either a Gravatar URL or complete image tag for a specified email address. |
||
20 | * |
||
21 | * @param string $email The email address |
||
22 | * @param string $size Size in pixels, defaults to 80px [ 1 - 2048 ] |
||
23 | * @param string $d Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ] |
||
|
|||
24 | * @param string $rating Maximum rating (inclusive) [ g | pg | r | x ] |
||
25 | * @param boole $img True to return a complete IMG tag False for just the URL |
||
26 | * @param array $atts Optional, additional key/value attributes to include in the IMG tag |
||
27 | * @return String containing either just a URL or a complete image tag |
||
28 | * @source https://gravatar.com/site/implement/images/php/ |
||
29 | */ |
||
30 | public function getGravatar($email, $size, $dImageset, $rating, $img, $atts) |
||
44 | } |
||
45 |
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.