PHP 8.2.31
Preview: MemberVarSpacingStandard.xml Size: 2.00 KB
/opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/MemberVarSpacingStandard.xml

<documentation title="Member Var Spacing">
    <standard>
    <![CDATA[
    There should be exactly one blank line before the first property (member variable).
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: One blank line before the first property.">
        <![CDATA[
class MyClass
{<em>

</em>    protected $var1 = 'value';
}
        ]]>
        </code>
        <code title="Invalid: Incorrect number of blank lines before the first property.">
        <![CDATA[
class MyClass
{<em>
</em>    protected $var1 = 'value';
}
        ]]>
        </code>
    </code_comparison>
    <standard>
    <![CDATA[
    There should be exactly one blank line between properties.
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: One blank line between each property.">
        <![CDATA[
trait MyTrait {

    public $var1 = 'value';<em>

</em>    public $var2 = 'value2';<em>

</em>    public $var3 = 'value3';
}
        ]]>
        </code>
        <code title="Invalid: Incorrect number of blank lines between each property.">
        <![CDATA[
trait MyTrait {

    public $var1 = 'value';<em>


</em>    public $var2 = 'value2';<em>
</em>    public $var3 = 'value3';
}
        ]]>
        </code>
    </code_comparison>
    <standard>
    <![CDATA[
    There should be no blank lines between a property DocBlock and the property declaration the DocBlock applies to.
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: No blank lines between DocBlock and its property.">
        <![CDATA[
$anon = new class {

    /**
     * The actions that this class can perform.
     *
     * @var array
     */<em>
</em>    public $actions = array();
};
        ]]>
        </code>
        <code title="Invalid: Blank line(s) between DocBlock and its property.">
        <![CDATA[
$anon = new class {

    /**
     * The actions that this class can perform.
     *
     * @var array
     */<em>

</em>    public $actions = array();
};
        ]]>
        </code>
    </code_comparison>
</documentation>

Directory Contents

Dirs: 0 × Files: 10

Name Size Perms Modified Actions
491 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.58 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
561 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
578 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.00 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
529 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.28 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
592 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
462 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.29 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).