1 | <?php |
||
10 | class SidebarService extends ServiceAbstract implements ServiceInterface |
||
11 | { |
||
12 | protected $relativeToBasePath = 'resources/views/vendor/backpack/base/inc'; |
||
13 | |||
14 | protected $fileName = 'sidebar_content.blade.php'; |
||
15 | |||
16 | private $sidebarFile; |
||
17 | |||
18 | public function call() |
||
27 | |||
28 | private function getRouteName(): string |
||
32 | |||
33 | private function getLanguageName(): string |
||
37 | |||
38 | /** |
||
39 | * Build the class with the given name. |
||
40 | * |
||
41 | * @param string $name |
||
|
|||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | private function writeFile() |
||
49 | |||
50 | private function getFilePath() |
||
54 | |||
55 | private function getRouteString() |
||
66 | } |
||
67 |
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.