Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Oct 24, 2023
1 parent 9ed38e6 commit 476803a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
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 || ':' !== substr(rtrim($doc->getLine(1)?->getContent() ?: ''), -1))

Check failure on line 79 in src/Fixer/Phpdoc/PhpdocSummaryFixer.php

View workflow job for this annotation

GitHub Actions / Static Code Analysis (ubuntu-20.04, 8.1)

Short ternary operator is not allowed. Use null coalesce operator if applicable or consider using long ternary.
) {
$line->setContent($content.'.'.$this->whitespacesConfig->getLineEnding());
$tokens[$index] = new Token([T_DOC_COMMENT, $doc->getContent()]);
Expand Down
1 change: 0 additions & 1 deletion tests/Fixer/Phpdoc/PhpdocSummaryFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ public function testFixMultiline(): void
$this->doTest($expected, $input);
}


public function testWithList(): void
{
$expected = <<<'EOF'
Expand Down

0 comments on commit 476803a

Please sign in to comment.