REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.38 KB
Close
//opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/FunctionDeclarationStandard.xml
Text
Base64
<documentation title="Function Declarations"> <standard> <![CDATA[ There should be exactly 1 space after the function keyword and 1 space on each side of the use keyword. Closures should use the Kernighan/Ritchie Brace style and other single-line functions should use the BSD/Allman style. Multi-line function declarations should have the parameter lists indented one level with the closing parenthesis on a newline followed by a single space and the opening brace of the function. ]]> </standard> <code_comparison> <code title="Valid: Correct spacing around function and use keywords."> <![CDATA[ $foo = function<em> </em>()<em> </em>use<em> </em>($bar)<em> </em>{ }; ]]> </code> <code title="Invalid: No spacing around function and use keywords."> <![CDATA[ $foo = function<em></em>()<em></em>use<em></em>($bar)<em></em>{ }; ]]> </code> </code_comparison> <code_comparison> <code title="Valid: Multi-line function declaration formatted properly."> <![CDATA[ function foo( <em> </em>$bar, <em> </em>$baz <em>) {</em> }; ]]> </code> <code title="Invalid: Invalid indentation and formatting of closing parenthesis."> <![CDATA[ function foo( <em></em>$bar, <em></em>$baz<em>)</em> <em>{</em> }; ]]> </code> </code_comparison> </documentation>
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
FunctionCallSignatureStandard.xml
669 B
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
FunctionDeclarationStandard.xml
1.38 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ValidDefaultValueStandard.xml
637 B
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).