Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7411661
FunctionOpeningBraceStandard.xml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
938 B
Referenced Files
None
Subscribers
None
FunctionOpeningBraceStandard.xml
View Options
<documentation
title=
"Function Opening Brace Whitespace"
>
<standard>
<![CDATA[
The opening brace for functions should be on a new line with no blank lines surrounding it.
]]>
</standard>
<code_comparison>
<code
title=
"Valid: Opening brace is on a new line."
>
<![CDATA[
function foo()
<em>{</em>
}
]]>
</code>
<code
title=
"Invalid: Opening brace is on the same line as the function declaration."
>
<![CDATA[
function foo() <em>{</em>
}
]]>
</code>
</code_comparison>
<code_comparison>
<code
title=
"Valid: No blank lines after the opening brace."
>
<![CDATA[
function foo()
{
<em> return 42;</em>
}
]]>
</code>
<code
title=
"Invalid: A blank line after the opening brace."
>
<![CDATA[
function foo()
{
<em></em>
return 42;
}
]]>
</code>
</code_comparison>
</documentation>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 21, 23:44 (1 d, 14 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2f/c6/6a324f0fabcb1b7533c988dfefab
Default Alt Text
FunctionOpeningBraceStandard.xml (938 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment