Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7462591
UppercaseMagicConstantsStandard.xml
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
760 B
Referenced Files
None
Subscribers
None
UppercaseMagicConstantsStandard.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=
"Uppercase Magic Constants"
>
<standard>
<![CDATA[
The PHP native `__...__` magic constant should be in uppercase.
]]>
</standard>
<code_comparison>
<code
title=
"Valid: using uppercase."
>
<![CDATA[
echo <em>__LINE__</em>;
include <em>__DIR__</em> . '/file.php';
]]>
</code>
<code
title=
"Invalid: using lowercase or mixed case."
>
<![CDATA[
echo <em>__NameSpace__</em>;
include dirname(<em>__file__</em>) . '/file.php';
]]>
</code>
</code_comparison>
</documentation>
File Metadata
Details
Attached
Mime Type
text/xml
Expires
Mon, Nov 23, 03:41 (3 d, 3 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fd/87/85b6eed714683e8b3717d328823e
Default Alt Text
UppercaseMagicConstantsStandard.xml (760 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment