| Lines of Code | 1 |
| Duplicated Lines | 1 |
| Ratio | 100 % |
| Changes | 0 | ||
Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
| 1 | // This file was generated by silverstripe/cow from client/lang/src/[email protected]. |
||
| 3 | if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') { |
||
| 4 | if (typeof(console) !== 'undefined') { // eslint-disable-line no-console |
||
| 20 | } |