| 1 | <?php |
||
| 7 | class MysqlYouTubeRepository implements YouTubeRepositoryInterface |
||
| 8 | { |
||
| 9 | |||
| 10 | /** @var ConnectionLocator */ |
||
| 11 | protected $connections; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param ConnectonLocator $connections |
||
| 15 | */ |
||
| 16 | public function __construct(ConnectionLocator $connections) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param integer $id |
||
| 23 | * |
||
| 24 | * @return array|false |
||
| 25 | */ |
||
| 26 | public function getYouTubeById($id) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $title |
||
|
|
|||
| 45 | * |
||
| 46 | * @return array|false |
||
| 47 | */ |
||
| 48 | public function getYouTubeByVideoId($videoId) |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return array|false |
||
| 67 | */ |
||
| 68 | public function getUnmappedYouTubes() |
||
| 81 | } |
||
| 82 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.