| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class Tokens |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Token that indicates the boundary between variant data |
||
| 18 | */ |
||
| 19 | const VARIANT_SEPARATOR = ','; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Token that indicates the boundary between the variant & any params attached to it. |
||
| 23 | */ |
||
| 24 | const PARAMS_SEPARATOR = ';'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Token that splits the mime type & subtypes. |
||
| 28 | */ |
||
| 29 | const MIME_SEPARATOR = '/'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Token that splits params into keys and values. |
||
| 33 | */ |
||
| 34 | const PARAMS_KV_SEPARATOR = '='; |
||
| 35 | |||
| 36 | |||
| 37 | /** |
||
| 38 | * Return true if the provided string is one of the separator tokens defined in this class. |
||
| 39 | * |
||
| 40 | * @param string $string |
||
| 41 | * @param bool $mimeField |
||
| 42 | * |
||
| 43 | * @return bool |
||
| 44 | */ |
||
| 45 | 80 | public static function isSeparator($string, $mimeField) |
|
| 56 |