opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Generic
/
Docs
/
Functions
➕ New
📤 Upload
✎ Editing:
OpeningFunctionBraceKernighanRitchieStandard.xml
← Back
<documentation title="Opening Function Brace Kerninghan Ritchie"> <standard> <![CDATA[ The function opening brace must be on the same line as the end of the function declaration, with exactly one space between the end of the declaration and the brace. The brace must be the last content on the line. ]]> </standard> <code_comparison> <code title="Valid: Opening brace on the same line."> <![CDATA[ function fooFunction($arg1, $arg2 = '')<em> {</em> // Do something. } ]]> </code> <code title="Invalid: Opening brace on the next line."> <![CDATA[ function fooFunction($arg1, $arg2 = '') <em>{</em> // Do something. } ]]> </code> </code_comparison> </documentation>
💾 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