Created at 2023-12-20 20:08:40 , with PHPMetrics v2.8.2 (Jean-François Lépine).
Violations
12
Information
2
Warnings
5
Errors
5
Criticals
0

Class Violations

Class Violations
Symftony\Xpression\Parser
Too complex class code error
This class looks really complex.

* Algorithms are complex (Total cyclomatic complexity of class is 51)
* Component uses 145 operators

Maybe you should delegate some code to other objects.
Too complex method code error
This class looks really complex.

* Algorithms are complex (Max cyclomatic complexity of class methods is 43)

Maybe you should delegate some code to other objects or split complex method.
Probably bugged warning
This component contains in theory 0.76 bugs.

* Calculation is based on number of operators, operands, cyclomatic complexity
* See more details at https://en.wikipedia.org/wiki/Halstead_complexity_measures
* 8 testsuites has dependency to this class.

Maybe you should check your unit tests for this class.
Too long information
This class looks really long.

* Class has 232 logical lines of code
* Class has 265 lines of code

Maybe your class should not exceed 200 lines of logical code
Too complex class code Too complex method code Probably bugged Too long
Symftony\Xpression\Expr\ClosureExpressionBuilder
Blob / God object error
A blob object (or "god class") does not follow the Single responsibility principle.

* object has lot of public methods (20, excluding getters and setters)
* object has a high Lack of cohesion of methods (LCOM=20)
* object knows everything (and use lot of external classes)

Maybe you should reducing the number of methods splitting this object in many sub objects.
Probably bugged warning
This component contains in theory 0.38 bugs.

* Calculation is based on number of operators, operands, cyclomatic complexity
* See more details at https://en.wikipedia.org/wiki/Halstead_complexity_measures
* 4 testsuites has dependency to this class.

Maybe you should check your unit tests for this class.
Blob / God object Probably bugged
Symftony\Xpression\Lexer
Too complex class code error
This class looks really complex.

* Algorithms are complex (Total cyclomatic complexity of class is 55)
* Component uses 203 operators

Maybe you should delegate some code to other objects.
Too complex method code error
This class looks really complex.

* Algorithms are complex (Max cyclomatic complexity of class methods is 31)

Maybe you should delegate some code to other objects or split complex method.
Probably bugged warning
This component contains in theory 1.07 bugs.

* Calculation is based on number of operators, operands, cyclomatic complexity
* See more details at https://en.wikipedia.org/wiki/Halstead_complexity_measures
* 4 testsuites has dependency to this class.

Maybe you should check your unit tests for this class.
Too long information
This class looks really long.

* Class has 221 logical lines of code
* Class has 260 lines of code

Maybe your class should not exceed 200 lines of logical code
Too complex class code Too complex method code Probably bugged Too long

Package Violations

Package Violations
Symftony\Xpression\Expr
Stable Abstractions Principle warning
Packages should be either abstract and stable or concrete and instable.

This package is instable and abstract.
Stable Abstractions Principle
Symftony\Xpression\Exception\Expr
Stable Abstractions Principle warning
Packages should be either abstract and stable or concrete and instable.

This package is instable and abstract.
Stable Abstractions Principle