-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update FunctionComment sniff with phpcs 2 fixes #159
Conversation
holding off on the changes related to |
So is this ok to merge then? |
I think this can be merged. Do you want to review the referenced phpcs change? I think it doesn't apply but I'm not 100% sure. |
I've partially added the changes from squizlabs/PHP_CodeSniffer@7e92909 but due to our Joomla specific changes in the sniff I can't see how the rest of the changes would apply. |
@@ -231,7 +235,8 @@ protected function processParams(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $co | |||
{ | |||
if ($tokens[$i]['code'] === T_DOC_COMMENT_STRING) | |||
{ | |||
$comment .= ' ' . $tokens[$i]['content']; | |||
$comment .= ' ' . $tokens[$i]['content']; | |||
$commentEnd = $i; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CS is wrong 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh, Stupid github web interface and their enforced tabs=8 spacing making it hard to see things when you set it back to tab=4.
Should be fixed...
(although I'm not sure why that didn't flag in the rules check... maybe something isn't working or we need another sniff for that.)
@param
lines