Skip to content

Commit a80fde9

Browse files
rodrigoprimojrfnl
authored andcommitted
Generic/FunctionCallArgumentSpacing: update XML doc to remove info about spacing around equal sign
The FunctionCallArgumentSpacing sniff used to check for spacing around the equal sign in the arguments of a function declaration. But this was removed in squizlabs/PHP_CodeSniffer#2399 (commit feeda47). This commit updates the sniff XML doc to reflect this change.
1 parent 5757c5b commit a80fde9

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

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

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<documentation title="Function Argument Spacing">
22
<standard>
33
<![CDATA[
4-
Function arguments should have one space after a comma, and single spaces surrounding the equals sign for default values.
4+
Function arguments should have one space after a comma.
55
]]>
66
</standard>
77
<code_comparison>
@@ -16,22 +16,6 @@ function foo($bar,<em> </em>$baz)
1616
<![CDATA[
1717
function foo($bar,<em></em>$baz)
1818
{
19-
}
20-
]]>
21-
</code>
22-
</code_comparison>
23-
<code_comparison>
24-
<code title="Valid: Single spaces around an equals sign in function declaration.">
25-
<![CDATA[
26-
function foo($bar, $baz<em> </em>=<em> </em>true)
27-
{
28-
}
29-
]]>
30-
</code>
31-
<code title="Invalid: No spaces around an equals sign in function declaration.">
32-
<![CDATA[
33-
function foo($bar, $baz<em></em>=<em></em>true)
34-
{
3519
}
3620
]]>
3721
</code>

0 commit comments

Comments
 (0)