1<documentation title="Function Argument Spacing"> 2 <standard> 3 <![CDATA[ 4 Function arguments should have one space after a comma, and single spaces surrounding the equals sign for default values. 5 ]]> 6 </standard> 7 <code_comparison> 8 <code title="Valid: Single spaces after a comma."> 9 <![CDATA[ 10function foo($bar,<em> </em>$baz) 11{ 12} 13 ]]> 14 </code> 15 <code title="Invalid: No spaces after a comma."> 16 <![CDATA[ 17function foo($bar,<em></em>$baz) 18{ 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[ 26function 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[ 33function foo($bar, $baz<em></em>=<em></em>true) 34{ 35} 36 ]]> 37 </code> 38 </code_comparison> 39</documentation> 40