opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
PEAR
/
Docs
/
WhiteSpace
➕ New
📤 Upload
✎ Editing:
ScopeIndentStandard.xml
← Back
<documentation title="Scope Indentation"> <standard> <![CDATA[ Any scope openers except for switch statements should be indented 1 level. This includes classes, functions, and control structures. ]]> </standard> <code_comparison> <code title="Valid: Consistent indentation level for scope."> <![CDATA[ function foo() { <em> </em>if ($test) { <em> </em>$var = 1; <em> </em>} } ]]> </code> <code title="Invalid: Indentation is not used for scope."> <![CDATA[ function foo() { <em></em>if ($test) { <em></em>$var = 1; <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