PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Classes/OpeningBraceSameLineStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Classes/OpeningBraceSameLineStandard.xml   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Classes/OpeningBraceSameLineStandard.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: 901 bytes
 

Contents

Class file image Download
<documentation title="Opening Brace on Same Line"> <standard> <![CDATA[ The opening brace of a class must be on the same line after the definition and must be the last thing on that line. ]]> </standard> <code_comparison> <code title="Valid: Opening brace on the same line."> <![CDATA[ class Foo <em>{</em> } ]]> </code> <code title="Invalid: Opening brace on the next line."> <![CDATA[ class Foo <em>{</em> } ]]> </code> </code_comparison> <code_comparison> <code title="Valid: Opening brace is the last thing on the line."> <![CDATA[ class Foo <em>{</em> } ]]> </code> <code title="Invalid: Opening brace not last thing on the line."> <![CDATA[ class Foo {<em> // Start of class.</em> } ]]> </code> </code_comparison> </documentation>