Skip to content

Commit

Permalink
phpdowngrade
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Oct 24, 2023
1 parent 14b0c86 commit 368ca51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fixer/Phpdoc/PhpdocSummaryFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected function applyFix(\SplFileInfo $file, Tokens $tokens): void
// final line of Description is NOT properly formatted
!$this->isCorrectlyFormatted($content)
// and first line of Description, if different than final line, does NOT indicate a list
&& (1 === $end || ':' !== substr(rtrim($doc->getLine(1)?->getContent() ?? ''), -1))
&& (1 === $end || ($doc->isMultiLine() && ':' !== substr(rtrim($doc->getLine(1)->getContent()), -1)))
) {
$line->setContent($content.'.'.$this->whitespacesConfig->getLineEnding());
$tokens[$index] = new Token([T_DOC_COMMENT, $doc->getContent()]);
Expand Down

0 comments on commit 368ca51

Please sign in to comment.