File "FunctionOpeningBraceSpaceUnitTest.inc.fixed"

Full Path: /home/warrior1/public_html/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.inc.fixed
File size: 606 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

function MyFunction1()
{
    // Some code goes here.
    echo $code;
}

function MyFunction2()
{
    // Some code goes here.
    echo $code;
}

class MyClass
{
    function MyFunction1()
    {
        // Some code goes here.
        echo $code;
    }

    function MyFunction2()
    {
        // Some code goes here.
        echo $code;
    }

    public function register();
}

function emptyFunction()
{

}//end emptyFunction();

public function register();

function allOnOneLine() { echo 'abc'; }

$a = function()
{
	echo 'Testing a closure';
};

$a = function()
{
	echo 'Testing a closure';
};