
Rule no_trailing_whitespace_in_string
ΒΆ
There must be no trailing whitespace in strings.
WarningΒΆ
Using this rule is riskyΒΆ
Changing the whitespaces in strings might affect string comparisons and outputs.
ExamplesΒΆ
Example #1ΒΆ
--- Original
+++ New
-<?php $a = '
- foo
+<?php $a = '
+ foo
';
Rule setsΒΆ
The rule is part of the following rule sets:
Source classΒΆ
PhpCsFixer\Fixer\StringNotation\NoTrailingWhitespaceInStringFixer