| 1 | <?php namespace GolfLeague\Services; |
||
| 15 | class MoneyService |
||
| 16 | { |
||
| 17 | |||
| 18 | // Containing our matchRepository to make all our database calls |
||
| 19 | protected $matchRepo; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Loads our $matchRepo |
||
| 23 | * |
||
| 24 | * @param MatchRepository $matchRepo |
||
|
|
|||
| 25 | * @return MatchService |
||
| 26 | */ |
||
| 27 | public function __construct() |
||
| 31 | |||
| 32 | public function totalMatchMoney($matchId) |
||
| 42 | } |
||
| 43 |
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.