Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
wp-content
/
themes
/
storefront
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
PSR12
/
Docs
/
Namespaces
:
CompoundNamespaceDepthStandard.xml
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<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>