Skip to content

Commit

Permalink
Removed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Nov 7, 2024
1 parent 88602f9 commit a1d377e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,6 @@ public function process(File $phpcsFile, $propertyPointer): void
$commentWhitespacePointer = TokenHelper::findPrevious($phpcsFile, [T_WHITESPACE], $docCommentStartPointer);
$indent = ($commentWhitespacePointer !== null ? $tokens[$commentWhitespacePointer]['content'] : '') . ' ';

/** empty comment is not split into start & end tokens properly */
if ($tokens[$docCommentStartPointer]['content'] === '/***/') {
$phpcsFile->fixer->beginChangeset();

$phpcsFile->fixer->replaceToken($docCommentStartPointer, '/**');
$phpcsFile->fixer->addNewline($docCommentStartPointer);
$phpcsFile->fixer->addContent($docCommentStartPointer, $indent);
$phpcsFile->fixer->addContent($docCommentStartPointer, '*');
$phpcsFile->fixer->addNewline($docCommentStartPointer);
$phpcsFile->fixer->addContent($docCommentStartPointer, $indent);
$phpcsFile->fixer->addContent($docCommentStartPointer, '*/');

$phpcsFile->fixer->endChangeset();

return;
}

$phpcsFile->fixer->beginChangeset();

$phpcsFile->fixer->addNewline($docCommentStartPointer);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"php": "^7.4 || ^8.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0",
"phpstan/phpdoc-parser": "^2.0",
"squizlabs/php_codesniffer": "^3.9.0"
"squizlabs/php_codesniffer": "^3.10.0"
},
"require-dev": {
"phing/phing": "2.17.4",
Expand Down

0 comments on commit a1d377e

Please sign in to comment.