| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 12 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | public function getDescription() |
||
| 50 | { |
||
| 51 | return <<<EOT |
||
| 52 | This class looks really complex. |
||
| 53 | |||
| 54 | * Algorithm are complex (Cyclomatic complexity is {$this->metric->get('ccn')}) |
||
| 55 | * Component uses {$this->metric->get('number_operators')} operators |
||
| 56 | |||
| 57 | Maybe you should delegate some code to another objects. |
||
| 58 | EOT; |
||
| 59 | |||
| 60 | } |
||
| 61 | } |
||
| 62 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.