PHP Classes

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

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

Contents

Class file image Download
<documentation title="Opening Brace Space"> <standard> <![CDATA[ The opening brace of an object-oriented construct must not be followed by a blank line. ]]> </standard> <code_comparison> <code title="Valid: No blank lines after opening brace."> <![CDATA[ class Foo {<em></em> public function bar() { // Method content. } } ]]> </code> <code title="Invalid: Blank line after opening brace."> <![CDATA[ class Foo { <em></em> public function bar() { // Method content. } } ]]> </code> </code_comparison> </documentation>