Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7418288
IfElseDeclarationStandard.xml
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
876 B
Referenced Files
None
Subscribers
None
IfElseDeclarationStandard.xml
View Options
<?xml version="1.0"?>
<documentation
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd"
title=
"If-else Declarations"
>
<standard>
<![CDATA[
The `else` and `elseif` keywords should be on a new line.
]]>
</standard>
<code_comparison>
<code
title=
"Valid: `elseif` and `else` each on a new line."
>
<![CDATA[
if (
$
foo) {
$
var = 1;
}<em>
elseif</em> (
$
bar) {
$
var = 2;
}
else {
$
var = 3;
}
]]>
</code>
<code
title=
"Invalid: `elseif` and `else` on the same line as the closing curly of the preceding (else)if."
>
<![CDATA[
if (
$
foo) {
$
var = 1;
} <em>elseif</em> (
$
bar) {
$
var = 2;
} <em>else</em> {
$
var = 3;
}
]]>
</code>
</code_comparison>
</documentation>
File Metadata
Details
Attached
Mime Type
text/xml
Expires
Sun, Nov 22, 03:50 (1 d, 8 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ca/4c/b4084027fc3bfc1bc86e364e5871
Default Alt Text
IfElseDeclarationStandard.xml (876 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment