| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 5 |
| Lines | 13 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | public function getDescription() |
||
| 50 | { |
||
| 51 | return <<<EOT |
||
| 52 | This component contains in theory {$this->metric->get('bugs')} bugs. |
||
| 53 | |||
| 54 | * Calculation is based on number of operators, operands, cyclomatic complexity |
||
| 55 | * See more details at https://en.wikipedia.org/wiki/Halstead_complexity_measures |
||
| 56 | * {$this->metric->get('numberOfUnitTests')} testsuites has dependency to this class. |
||
| 57 | |||
| 58 | Maybe you should check yor unit tests for this class. |
||
| 59 | EOT; |
||
| 60 | |||
| 61 | } |
||
| 62 | } |
||
| 63 |
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.