PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Methods/FunctionClosingBraceStandard.xml

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

Contents

Class file image Download
<documentation title="Function Closing Brace"> <standard> <![CDATA[ Checks that the closing brace of a function goes directly after the body. ]]> </standard> <code_comparison> <code title="Valid: Closing brace directly follows the function body."> <![CDATA[ function foo() { echo 'foo'; <em>}</em> ]]> </code> <code title="Invalid: Blank line between the function body and the closing brace."> <![CDATA[ function foo() { echo 'foo'; <em></em> <em>}</em> ]]> </code> </code_comparison> </documentation>