PHP Classes

File: vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/DisallowMixedGroupUseStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/DisallowMixedGroupUseStandard.xml   Download  
File: vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/DisallowMixedGroupUseStandard.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: Yesterday
Size: 1,045 bytes
 

Contents

Class file image Download
<?xml version="1.0"?> <documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd" title="Disallow Mixed Group Use" > <standard> <![CDATA[ Disallow group use statements which combine imports for namespace/OO, functions and/or constants in one statement. ]]> </standard> <code_comparison> <code title="Valid: Single type group use statements."> <![CDATA[ use Some\NS\ { ClassName, AnotherClass, }; use function Some\NS\ { SubLevel\functionName, SubLevel\AnotherFunction, }; use const Some\NS\ { Constants\MY_CONSTANT as SOME_CONSTANT, }; ]]> </code> <code title="Invalid: Mixed group use statement."> <![CDATA[ use Some\NS\ { ClassName, function SubLevel\functionName, const MY_CONSTANT as SOME_CONSTANT, function SubLevel\AnotherName, AnotherLevel, }; ]]> </code> </code_comparison> </documentation>