1 | <?php |
||
10 | trait HeadersExtractorTrait |
||
11 | { |
||
12 | /** |
||
13 | * Add the headers found to the translations instance |
||
14 | * |
||
15 | * @param string $headers |
||
16 | * @param Translations $translations |
||
17 | * |
||
18 | * @return array |
||
19 | */ |
||
20 | private static function extractHeaders($headers, Translations $translations) |
||
42 | |||
43 | /** |
||
44 | * Checks if it is a header definition line. Useful for distguishing between header definitions |
||
45 | * and possible continuations of a header entry. |
||
46 | * |
||
47 | * @param string $line Line to parse |
||
48 | * |
||
49 | * @return bool |
||
50 | */ |
||
51 | private static function isHeaderDefinition($line) |
||
55 | |||
56 | /** |
||
57 | * Normalize a string. |
||
58 | * |
||
59 | * @param string $value |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | public static function convertString($value) |
||
67 | } |
||
68 |