Skip to content

Updated sniff to allow automatic fixing #204

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

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix line length
  • Loading branch information
cjnewbs committed May 17, 2021
commit 524194c23cb945ce08e6e9640285a3a0593e66c7
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,17 @@ private function validateTags(File $phpcsFile, $commentStartPtr, $tokens)
$startPtr = $i;
while (!$startFound) {
$startPtr--;
if ($tokens[$startPtr]['code'] === T_DOC_COMMENT_WHITESPACE && $tokens[$startPtr]['content'] === "\n") {
$token = $tokens[$startPtr];
if ($token['code'] === T_DOC_COMMENT_WHITESPACE && $token['content'] === "\n") {
$startFound = true;
}
}
$endFound = false;
$endPtr = $i;
while (!$endFound) {
$endPtr++;
if ($tokens[$endPtr]['code'] === T_DOC_COMMENT_WHITESPACE && $tokens[$endPtr]['content'] === "\n") {
$token = $tokens[$startPtr];
if ($token['code'] === T_DOC_COMMENT_WHITESPACE && $token['content'] === "\n") {
$endFound = true;
$endPtr--;
}
Expand Down