PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Namespaces/CompoundNamespaceDepthStandard.xml

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

Contents

Class file image Download
<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>