1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Fixed PHPCS errors for CommentAnalyzer

This commit is contained in:
rhertogh 2023-07-15 19:04:52 +02:00
parent c362dd5af7
commit 65ad2f829e

View File

@ -34,12 +34,11 @@ use function preg_split;
use function rtrim;
use function str_replace;
use function strlen;
use function strpos;
use function substr;
use function substr_count;
use function trim;
use const PREG_OFFSET_CAPTURE;
/**
* @internal
*/
@ -333,7 +332,9 @@ class CommentAnalyzer
// Ignore the rest of the current line
$i = strpos($return_block, "\n", $i);
if ($i === false) {
Throw new IncorrectDocblockException('Comment lines must be terminated with a new line character (\\n).');
throw new IncorrectDocblockException(
'Comment lines must be terminated with a new line character (\\n).'
);
}
// Remove trailing whitespaces (needed for `sanitizeDocblockType`)