Duplicated string literals make the process of refactoring complex and error-prone, as any change would need to be propagated on all
occurrences.
Exceptions
No issue will be raised on:
- strings with less than 5 characters
- strings with only letters, numbers, underscores, hyphens and periods
- Laravel validation strings (e.g.,
"required", "max:100", "email:rfc")
- Drupal form keys (e.g.,
"#type", "#title")