Closed audriusrudalevicius closed 9 years ago
I believe, this issue should be attributed upstream to https://github.com/squizlabs/PHP_CodeSniffer itself.
/**
* Calculate moving average.
*
* @param int[] $input_data
* @param int $period Smoothing window.
* @param int $xEnd Stop count.
It is fixed in 2.0. Should be aligned to $input_data (longest parameter name of all parameters in list). Parameter comments not required, but if exist, it must be aligned as after longest parameter name in list.
/**
* Calculate moving average.
*
* @param int[] $input_data
* @param int $period Smoothing window.
* @param int $xEnd Stop count.
In this situation when I have only one comment on parameters I got warning: The comments for parameters $input_data (1) and $period (2) do not align
same for