Commit a375eea
Generic/OpeningFunctionBraceKernighanRichie: improve handling of tabs in a fixer
This commit makes a tiny performance improvement to the sniff when
handling fixing code with tabs. Before this change, the sniff would need
two passes of the fixer for code with one tab before the opening brace.
First, it would add a space between the tab and the opening brace. Then,
on a second pass, it would replace the tab and the space with just one
space.
Now, it replaces the tab with the space directly without the need for a
second pass.1 parent 70f8f2c commit a375eea
File tree
1 file changed
+1
-1
lines changed- src/Standards/Generic/Sniffs/Functions
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
0 commit comments