1 | <?php namespace Anomaly\Streams\Platform\Asset\Command; |
||
17 | class LoadThemeVariables |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * The theme variables. |
||
22 | * |
||
23 | * @var Collection |
||
24 | */ |
||
25 | protected $variables; |
||
26 | |||
27 | /** |
||
28 | * The default variables files. |
||
29 | * |
||
30 | * @var array |
||
31 | */ |
||
32 | protected $default = [ |
||
33 | 'resources/less/theme/variables.less', |
||
34 | 'resources/scss/theme/_variables.scss', |
||
35 | ]; |
||
36 | |||
37 | /** |
||
38 | * Create a new ThemeVariablesHaveLoaded instance. |
||
39 | * |
||
40 | * @param ThemeCollection $themes |
||
|
|||
41 | */ |
||
42 | public function __construct(Collection $variables) |
||
46 | |||
47 | /** |
||
48 | * Handle the command. |
||
49 | * |
||
50 | * @param Dispatcher $events |
||
51 | * @param Repository $config |
||
52 | * @param ThemeCollection $themes |
||
53 | * @internal param Repository $config |
||
54 | */ |
||
55 | public function handle(Dispatcher $events, Repository $config, ThemeCollection $themes) |
||
83 | } |
||
84 |
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.