| 1 | <?php |
||
| 10 | class RouteService extends ServiceAbstract implements ServiceInterface |
||
| 11 | { |
||
| 12 | protected $relativeToBasePath = 'routes'; |
||
| 13 | |||
| 14 | private $adminFile; |
||
| 15 | |||
| 16 | public function call() |
||
| 26 | |||
| 27 | private function getRouteName(): string |
||
| 31 | |||
| 32 | private function getControllerName(): string |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Build the class with the given name. |
||
| 39 | * |
||
| 40 | * @param string $name |
||
|
|
|||
| 41 | * |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | private function writeFile() |
||
| 48 | |||
| 49 | private function getFilePath() |
||
| 53 | |||
| 54 | private function getRouteString() |
||
| 58 | } |
||
| 59 |
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.