opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Squiz
/
Docs
/
WhiteSpace
➕ New
📤 Upload
✎ Editing:
ScopeClosingBraceStandard.xml
← Back
<documentation title="Scope Closing Brace"> <standard> <![CDATA[ Indentation of a closing brace must match the indentation of the line containing the opening brace. ]]> </standard> <code_comparison> <code title="Valid: Closing brace aligned with line containing opening brace."> <![CDATA[ function foo() { <em>}</em> if (!class_exists('Foo')) { class Foo { <em>}</em> <em>}</em> <?php if ($something) { ?> <span>some output</span> <em><?php }</em> ?> ]]> </code> <code title="Invalid: Closing brace misaligned with line containing opening brace."> <![CDATA[ function foo() { <em> }</em> if (!class_exists('Foo')) { class Foo { <em>}</em> <em> }</em> <?php if ($something) { ?> <span>some output</span> <em> <?php }</em> ?> ]]> </code> </code_comparison> <standard> <![CDATA[ Closing brace must be on a line by itself. ]]> </standard> <code_comparison> <code title="Valid: Close brace on its own line."> <![CDATA[ enum Foo { <em>}</em> ]]> </code> <code title="Invalid: Close brace on a line containing other code."> <![CDATA[ enum Foo {<em>}</em> ]]> </code> </code_comparison> </documentation>
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel