| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait UnsignedShortTrait |
||
| 13 | { |
||
| 14 | /** @var string */ |
||
| 15 | private static string $unsignedShort_regex = '/^(([+]?0*)(?:[1-9]|[1-9]\d{1,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])|0)$/D'; |
||
| 16 | |||
| 17 | |||
| 18 | /** |
||
| 19 | * @param string $value |
||
| 20 | * @param string $message |
||
| 21 | */ |
||
| 22 | protected static function validUnsignedShort(string $value, string $message = ''): void |
||
| 32 |