1 | <?php |
||
10 | abstract class GeneratorCommand extends BaseCommand |
||
11 | { |
||
12 | /** |
||
13 | * $generator. |
||
14 | * |
||
15 | * @var \Recca0120\Generator\Generator |
||
16 | */ |
||
17 | protected $generator; |
||
18 | |||
19 | /** |
||
20 | * Create a new controller creator command instance. |
||
21 | * |
||
22 | * @param \Illuminate\Filesystem\Filesystem $files |
||
23 | * @param \Recca0120\Generator\Generator |
||
24 | */ |
||
25 | 7 | public function __construct(Filesystem $files, Generator $generator) |
|
31 | |||
32 | /** |
||
33 | * Parse the class name and format according to the root namespace. |
||
34 | * |
||
35 | * @param string $name |
||
36 | * @return string |
||
37 | */ |
||
38 | protected function qualifyClass($name) |
||
52 | |||
53 | /** |
||
54 | * Get the root namespace for the class. |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | 4 | protected function rootNamespace() |
|
62 | |||
63 | /** |
||
64 | * getStubResource. |
||
65 | * |
||
66 | * @param string $path |
||
|
|||
67 | * @return string |
||
68 | */ |
||
69 | 7 | protected function getStubResource($stub) |
|
79 | } |
||
80 |
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.