File "SuperfluousWhitespaceUnitTest.1.inc"

Full Path: /home/warrior1/public_html/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.inc
File size: 1001 B
MIME-type: text/x-c++
Charset: utf-8


<?php
echo 'hi';
echo 'hello';   
    
if ($something) {  
    
}


function myFunction()
{
    echo 'code here';

    echo 'code here';


    // Hello.

    /*
        HI
    */


}

/**
 * Doc comment with a white space at the end. 
 */
function myFunction2()
{
    echo 'code here';


    echo 'code here';

}

// phpcs:set Squiz.WhiteSpace.SuperfluousWhitespace ignoreBlankLines true

function myFunction2()
{
    echo 'code here';
    
    echo 'code here';
    
}

// Ordinary comment with extra whitespace at the end    

// phpcs:set Squiz.WhiteSpace.SuperfluousWhitespace ignoreBlankLines false

// Уберём из системных свойств все кроме информации об услугах

class Nested_Function {
    public function getAnonymousClass() {
        return new class() {


            static private final function _nested_function() {
                echo 'code here';


                echo 'code here';
         
            }


        };
    }
}

?>