Skip to content

Commit 02ff468

Browse files
rodrigoprimojrfnl
authored andcommitted
Generic/FunctionCallArgumentSpacing: improve XML documentation
- `<documentation>` title now matches the sniff name - Mention in the description that the sniff is about function and method calls. - `<standard>` and `<code>` descriptions now mention that the sniff also checks for spaces before the comma.
1 parent 7a47e82 commit 02ff468

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Standards/Generic/Docs/Functions/FunctionCallArgumentSpacingStandard.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
<documentation title="Function Argument Spacing">
1+
<documentation title="Function Call Argument Spacing">
22
<standard>
33
<![CDATA[
4-
Function arguments should have one space after a comma.
4+
There should be no space before and exactly one space, or a new line, after a comma when passing arguments to a function or method.
55
]]>
66
</standard>
77
<code_comparison>
8-
<code title="Valid: Single spaces after a comma.">
8+
<code title="Valid: No space before and exactly one space after a comma.">
99
<![CDATA[
1010
foo($bar,<em> </em>$baz);
1111
]]>
1212
</code>
13-
<code title="Invalid: No spaces after a comma.">
13+
<code title="Invalid: A space before and no space after a comma.">
1414
<![CDATA[
15-
foo($bar,<em></em>$baz);
15+
foo($bar<em> </em>,<em></em>$baz);
1616
]]>
1717
</code>
1818
</code_comparison>

0 commit comments

Comments
 (0)