PHP Classes

File: vendor/phpcsstandards/phpcsextra/Universal/Docs/Constants/UppercaseMagicConstantsStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/phpcsstandards/phpcsextra/Universal/Docs/Constants/UppercaseMagicConstantsStandard.xml   Download  
File: vendor/phpcsstandards/phpcsextra/Universal/Docs/Constants/UppercaseMagicConstantsStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: Yesterday
Size: 760 bytes
 

Contents

Class file image Download
<?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>