Commit 955f7a6
committed
PHPCSDebug/TokenList: minor tweak for testability
When a token only contains new line characters, a trailing space would be included on the line.
This makes testing the sniff harder as trailing whitespace is typically trimmed from a file, including in the expectations set in the tests.
This minor tweak ensures that the output for "new line only" tokens won't have trailing whitespace in the output line for the token.1 parent 8e57c25 commit 955f7a6
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| 125 | + | |
| 126 | + | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
130 | | - | |
| 133 | + | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
133 | 137 | | |
| |||
0 commit comments