File "DisallowShortArraySyntaxStandard.xml"

Full Path: /home/warrior1/public_html/wp-content/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Arrays/DisallowShortArraySyntaxStandard.xml
File size: 510 bytes
MIME-type: text/plain
Charset: utf-8

<documentation title="Long Array Syntax">
    <standard>
    <![CDATA[
    Long array syntax must be used to define arrays.
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: Long form of array.">
        <![CDATA[
$arr = <em>array(</em>
    'foo' => 'bar',
<em>)</em>;
        ]]>
        </code>
        <code title="Invalid: Short form of array.">
        <![CDATA[
$arr = <em>[</em>
    'foo' => 'bar',
<em>]</em>;
        ]]>
        </code>
    </code_comparison>
</documentation>