1 | <?php namespace Anomaly\Streams\Platform\Addon\Console\Command; |
||
13 | class ScaffoldTheme |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * Copy these theme folders. |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $copy = [ |
||
22 | 'fonts', |
||
23 | 'js', |
||
24 | 'scss', |
||
25 | 'views', |
||
26 | ]; |
||
27 | |||
28 | /** |
||
29 | * The addon path. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | private $path; |
||
34 | |||
35 | /** |
||
36 | * Create a new ScaffoldTheme instance. |
||
37 | * |
||
38 | * @param $path |
||
39 | */ |
||
40 | public function __construct($path) |
||
44 | |||
45 | /** |
||
46 | * Handle the command. |
||
47 | * |
||
48 | * @param Parser $parser |
||
|
|||
49 | * @param Filesystem $filesystem |
||
50 | */ |
||
51 | public function handle(Filesystem $filesystem) |
||
60 | } |
||
61 |
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.