PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Classes/ClosingBraceStandard.xml

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

Contents

Class file image Download
<documentation title="Closing Brace"> <standard> <![CDATA[ The closing brace of object-oriented constructs and functions must not be followed by any comment or statement on the same line. ]]> </standard> <code_comparison> <code title="Valid: Closing brace is the last content on the line."> <![CDATA[ class Foo { // Class content. }<em></em> function bar() { // Function content. }<em></em> ]]> </code> <code title="Invalid: Comment or statement following the closing brace on the same line."> <![CDATA[ interface Foo2 { // Interface content. } <em>echo 'Hello!';</em> function bar() { // Function content. } <em>//end bar()</em> ]]> </code> </code_comparison> </documentation>