PHP 8.2.31
Preview: FunctionClosingBraceUnitTest.inc Size: 585 B
/opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.inc

<?php

function test()
{
    // Body here.
}

function test()
{
    echo 'foo';}

function test()
{
    // Body here.

}

function test()
{
    // Body here.


}

class MyClass
{
    function test()
    {
        // Body here.
    }

    function test()
    {
        echo 'foo';}

    function test()
    {
        // Body here.

    }

    function test()
    {
        // Body here.


    }
}

$foo = function test()
{
    // Body here.
};

$foo = function test()
{
     echo 'foo';};

$foo = function test()
{
    // Body here.

};

$foo = function test()
{
    // Body here.


};

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
4.53 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
4.54 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.30 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
585 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
576 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.45 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.11 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.11 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.76 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download

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