PHP Classes

File: vendor/phpcsstandards/phpcsextra/Universal/Docs/ControlStructures/DisallowAlternativeSyntaxStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/phpcsstandards/phpcsextra/Universal/Docs/ControlStructures/DisallowAlternativeSyntaxStandard.xml   Download  
File: vendor/phpcsstandards/phpcsextra/Universal/Docs/ControlStructures/DisallowAlternativeSyntaxStandard.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: 912 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="Disallow Alternative Control Structure Syntax" > <standard> <![CDATA[ The use of the alternative syntax for control structures is not allowed. ]]> </standard> <code_comparison> <code title="Valid: using curly brace syntax for control structures."> <![CDATA[ if ($foo) <em>{</em> $var = 1; <em>}</em> while (++$i < 10) <em>{</em> echo $i; <em>}</em> ]]> </code> <code title="Invalid: using the alternative syntax for control structures."> <![CDATA[ if ($foo) <em>:</em> $var = 1; <em>endif;</em> while (++$i < 10)<em>:</em> echo $i; <em>endwhile;</em> ]]> </code> </code_comparison> </documentation>