PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/EmptyPHPStatementStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/EmptyPHPStatementStandard.xml   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/EmptyPHPStatementStandard.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: 2 days ago
Size: 1,137 bytes
 

Contents

Class file image Download
<documentation title="Empty PHP Statement"> <standard> <![CDATA[ Empty PHP tags are not allowed. ]]> </standard> <code_comparison> <code title="Valid: There is at least one statement inside the PHP tag pair."> <![CDATA[ <?php <em>echo 'Hello World';</em> ?> <?= <em>'Hello World';</em> ?> ]]> </code> <code title="Invalid: There is no statement inside the PHP tag pair."> <![CDATA[ <?php <em>;</em> ?> <?= <em></em> ?> ]]> </code> </code_comparison> <standard> <![CDATA[ Superfluous semicolons are not allowed. ]]> </standard> <code_comparison> <code title="Valid: There is no superfluous semicolon after a PHP statement."> <![CDATA[ function_call()<em>;</em> if (true) { echo 'Hello World'<em>;</em> } ]]> </code> <code title="Invalid: There are one or more superfluous semicolons after a PHP statement."> <![CDATA[ function_call()<em>;;;</em> if (true) { echo 'Hello World'; }<em>;</em> ]]> </code> </code_comparison> </documentation>