BossBey File Manager
PHP:
7.4.33
OS:
Linux
User:
root
Root
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Generic
/
Docs
/
Files
📤 Upload
📝 New File
📁 New Folder
Close
Editing: OneObjectStructurePerFileStandard.xml
<documentation title="One Object Structure Per File"> <standard> <![CDATA[ There should only be one class or interface or trait defined in a file. ]]> </standard> <code_comparison> <code title="Valid: Only one object structure in the file."> <![CDATA[ <?php <em>trait Foo</em> { } ]]> </code> <code title="Invalid: Multiple object structures defined in one file."> <![CDATA[ <?php <em>trait Foo</em> { } <em>class Bar</em> { } ]]> </code> </code_comparison> </documentation>
Save
Cancel