File "ShortFormTypeKeywordsStandard.xml"

Full Path: /home/warrior1/public_html/wp-content/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Keywords/ShortFormTypeKeywordsStandard.xml
File size: 529 bytes
MIME-type: text/plain
Charset: utf-8

<documentation title="Short Form Type Keywords">
    <standard>
    <![CDATA[
    Short form of type keywords MUST be used i.e. bool instead of boolean, int instead of integer etc.
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: Short form type used.">
        <![CDATA[
$foo = (bool) $isValid;
        ]]>
        </code>
        <code title="Invalid: Long form type type used.">
        <![CDATA[
$foo = <em>(boolean)</em> $isValid;
        ]]>
        </code>
    </code_comparison>
</documentation>