wishthis/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/KeywordSpacingStandard.xml
2023-09-20 13:52:46 +02:00

29 lines
942 B
XML

<?xml version="1.0"?>
<documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd"
title="Import Use Keyword Spacing"
>
<standard>
<![CDATA[
Enforce a single space after the `use`, `function`, `const` keywords and both before and after the `as` keyword in import `use` statements.
]]>
</standard>
<code_comparison>
<code title="Valid: Single space used around keywords.">
<![CDATA[
use<em> </em>function<em> </em>strpos;
use<em> </em>const<em> </em>PHP_EOL<em> </em>as<em> </em>MY_EOL;
]]>
</code>
<code title="Invalid: Incorrect spacing used around keywords.">
<![CDATA[
use<em> </em>function<em> </em>strpos;
use<em>
</em>const<em>
</em>PHP_EOL<em>
</em>as<em>
</em>MY_EOL;
]]>
</code>
</code_comparison>
</documentation>