File "FunctionDeclarationUnitTest.js"

Full Path: /home/warrior1/public_html/wp-content/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.js
File size: 1.04 KB
MIME-type: text/plain
Charset: utf-8


function someFunctionWithAVeryLongName(firstParameter='something',
   secondParameter='booooo', third=null, fourthParameter=false,
     fifthParameter=123.12, sixthParam=true
){
}

function someFunctionWithAVeryLongName2(firstParameter='something',
secondParameter='booooo', third=null, fourthParameter=false,
fifthParameter=123.12, sixthParam=true
)  {
}

function blah() {
}

function  blah()
{
}

var object =
{

    someFunctionWithAVeryLongName: function (firstParameter='something',
        secondParameter='booooo', third=null, fourthParameter=false,
        fifthParameter=123.12, sixthParam=true
    ) /** w00t */ {
    }

    someFunctionWithAVeryLongName2: function (
        firstParameter='something', secondParameter='booooo', third=null
    ) {
    }

}

function getInstalledStandards(
    includeGeneric=false,
    standardsDir=''
)
{
}

var a = Function('return 1+1');

class test
{
    myFunction() {
       return false;
    }

    myFunction2()
    {
       return false;
    }
}

( function ( $ ) {
    foo(function ( value ) {} )( jQuery );