| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | interface Dispatcher |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Dispatch found route with given parameters |
||
| 19 | * |
||
| 20 | * @param \Kambo\Router\Route\Route\Parsed $route Instance of found and parsed route. |
||
| 21 | * @param array $parameters Additional parameters, which will passed into dispatcher. |
||
| 22 | * |
||
| 23 | * @return mixed |
||
| 24 | */ |
||
| 25 | public function dispatchRoute(Parsed $route, array $parameters = []); |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Called if any of route did not match the request. |
||
| 29 | * |
||
| 30 | * @return mixed |
||
| 31 | */ |
||
| 32 | public function dispatchNotFound(); |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Sets not found handler |
||
| 36 | * |
||
| 37 | * @param ParsedRoute $route Instance of found parsed route |
||
|
|
|||
| 38 | * |
||
| 39 | * @return self for fluent interface |
||
| 40 | */ |
||
| 41 | public function setNotFoundHandler($handler); |
||
| 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.