opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
PSR12
/
Docs
/
Namespaces
➕ New
📤 Upload
✎ Editing:
CompoundNamespaceDepthStandard.xml
← Back
<documentation title="Compound Namespace Depth"> <standard> <![CDATA[ Compound namespaces with a depth of more than two MUST NOT be used. ]]> </standard> <code_comparison> <code title="Valid: Max depth of 2."> <![CDATA[ use Vendor\Package\SomeNamespace\{ SubnamespaceOne\ClassA, SubnamespaceOne\ClassB, SubnamespaceTwo\ClassY, ClassZ, }; ]]> </code> <code title="Invalid: Max depth of 3."> <![CDATA[ use Vendor\Package\SomeNamespace\{ <em>SubnamespaceOne\AnotherNamespace\ClassA,</em> SubnamespaceOne\ClassB, ClassZ, }; ]]> </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