Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | trait TNl |
||
14 | { |
||
15 | protected string $delimitElements = '|'; |
||
16 | |||
17 | /** @var array<string, string> */ |
||
18 | protected static array $escapeNlTr = [ |
||
19 | "\r\n" => INl::CRLF_REPLACEMENT, |
||
20 | "\r" => INl::CR_REPLACEMENT, |
||
21 | "\n" => INl::LF_REPLACEMENT, |
||
22 | ]; |
||
23 | |||
24 | 11 | public function unescapeNl(string $content): string |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param mixed $content |
||
32 | * @return string |
||
33 | */ |
||
34 | 9 | public function escapeNl($content): string |
|
40 |