Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function getGravatar($email, $size, $dImageset, $rating, $img, $atts) |
||
31 | { |
||
32 | $url = 'https://www.gravatar.com/avatar/'; |
||
33 | $url .= md5(strtolower(trim($email))); |
||
34 | $url .= "?s=$size&d=$dImageset&r=$rating"; |
||
35 | if ($img) { |
||
36 | $url = '<img src="' . $url . '"'; |
||
37 | foreach ($atts as $key => $val) { |
||
38 | $url .= ' ' . $key . '="' . $val . '"'; |
||
39 | } |
||
40 | $url .= ' />'; |
||
41 | } |
||
42 | return $url; |
||
43 | } |
||
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.