PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Squiz
/
Tests
/
Functions
function someFunctionWithAVeryLongName( firstParameter='something', secondParameter='booooo', third=null, fourthParameter=false, fifthParameter=123.12, sixthParam=true ) { } function someFunctionWithAVeryLongName2( firstParameter='something', secondParameter='booooo', ) { } 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 ) { } someFunctionWithAVeryLongName3: function ( firstParameter, secondParameter, third=null ) { } someFunctionWithAVeryLongName4: function ( firstParameter, secondParameter ) { } someFunctionWithAVeryLongName5: function ( firstParameter, secondParameter=array(1,2,3), third=null ) { } } var a = Function('return 1+1'); class test { myFunction() { return false; } myFunction2() { return false; } }
[-] FunctionDeclarationUnitTest.3.inc
[edit]
[-] GlobalFunctionUnitTest.inc
[edit]
[-] FunctionDeclarationUnitTest.1.inc
[edit]
[-] FunctionDeclarationArgumentSpacingUnitTest.3.inc
[edit]
[-] MultiLineFunctionDeclarationUnitTest.inc.fixed
[edit]
[-] FunctionDeclarationUnitTest.php
[edit]
[-] GlobalFunctionUnitTest.php
[edit]
[+]
..
[-] FunctionDeclarationArgumentSpacingUnitTest.5.inc
[edit]
[-] MultiLineFunctionDeclarationUnitTest.php
[edit]
[-] MultiLineFunctionDeclarationUnitTest.js.fixed
[edit]
[-] FunctionDuplicateArgumentUnitTest.inc
[edit]
[-] FunctionDeclarationArgumentSpacingUnitTest.2.inc
[edit]
[-] MultiLineFunctionDeclarationUnitTest.js
[edit]
[-] LowercaseFunctionKeywordsUnitTest.inc
[edit]
[-] MultiLineFunctionDeclarationUnitTest.inc
[edit]
[-] FunctionDeclarationArgumentSpacingUnitTest.6.inc
[edit]
[-] FunctionDeclarationArgumentSpacingUnitTest.4.inc
[edit]
[-] LowercaseFunctionKeywordsUnitTest.inc.fixed
[edit]
[-] FunctionDeclarationArgumentSpacingUnitTest.1.inc.fixed
[edit]
[-] FunctionDeclarationArgumentSpacingUnitTest.php
[edit]
[-] FunctionDeclarationArgumentSpacingUnitTest.1.inc
[edit]
[-] FunctionDeclarationUnitTest.2.inc
[edit]
[-] LowercaseFunctionKeywordsUnitTest.php
[edit]
[-] FunctionDuplicateArgumentUnitTest.php
[edit]