opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
PSR12
/
Docs
/
Classes
➕ New
📤 Upload
✎ Editing:
ClassInstantiationStandard.xml
← Back
<documentation title="Class Instantiation"> <standard> <![CDATA[ When instantiating a new class, parenthesis MUST always be present even when there are no arguments passed to the constructor. ]]> </standard> <code_comparison> <code title="Valid: Parenthesis used."> <![CDATA[ new Foo(); ]]> </code> <code title="Invalid: Parenthesis not used."> <![CDATA[ new Foo; ]]> </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