CRITICAL
Rule Definition
Each class should be in its own file for maintainablity.
Remediation
Each class should be in its own file.
Violation Code Sample
<?php
Class test
{
Public function test();
}
Class foo
{
Public function foo();
}
?>
Fixed Code Sample
<?php
Class test
{
Public function test();
}
?>
Reference
Symfony2-coding-standard - Author :
https://github.com/djoos/Symfony2-coding-standard/blob/master/Symfony2/Sniffs/Classes/MultipleClassesOneFileSniff.php
Related Technologies
Technical Criterion
Complexity - Technical Complexity
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.