| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | final class Encoding |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The maximum number of characters that are accepted in a keyword field. |
||
| 9 | */ |
||
| 10 | const KEYWORD_MAX_LENGTH = 1024; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Limit the size of keyword fields. |
||
| 14 | * |
||
| 15 | * @param int|string|null $value |
||
| 16 | * |
||
| 17 | * @return string |
||
| 18 | */ |
||
| 19 | 40 | public static function keywordField($value) |
|
| 39 |