opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Squiz
/
Tests
/
WhiteSpace
➕ New
📤 Upload
✎ Editing:
FunctionClosingBraceSpaceUnitTest.inc.fixed
← Back
<?php function MyFunction1() { // Some code goes here. } function MyFunction2() { // Some code goes here. } class MyClass { function MyFunction3() { // Some code goes here. } function MyFunction4() { // Some code goes here. } public function register(); } public function register(); function foo() { } function foo() { } function foo() { } function foo() { for ($i = 0; $i < $bar; $i++) { }//end for } // Nested functions - okay. function hasNestedOkay() { function nestedFunction() { echo 'hello'; } } $cl = function() { function nestedFunction() { echo 'hello'; } }; mycallback( 'name', function() { echo 'hello'; } ); // Nested functions - not okay. function hasNestedNotOkay() { function nestedFunction() { } } $cl = function() { function nestedFunction() { echo 'hello'; } }; mycallback('name', function() { echo 'hello'; } ); mycallback('name', function() { // Comment } );
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel