1 | <?php defined('SYSPATH') OR die('No direct script access.'); |
||
12 | class Kohana_Jam_Field_Twitter extends Jam_Field_Weblink { |
||
13 | |||
14 | /** |
||
15 | * If just a Twitter username is provided prefix it with 'http://twitter.com'. |
||
16 | * If username is provided with a '@' prefix it's stripped. |
||
17 | * |
||
18 | * @param Jam_Model $model |
||
19 | * @param string $value |
||
20 | * @param boolean $loaded |
||
|
|||
21 | * @return string |
||
22 | */ |
||
23 | 6 | public function set(Jam_Validated $model, $value, $is_changed) |
|
35 | |||
36 | } // End Jam_Field_Twitter |
||
37 |
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.