| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public static function renderStatic( |
||
| 30 | array $arguments, |
||
| 31 | \Closure $renderChildrenClosure, |
||
| 32 | RenderingContextInterface $renderingContext |
||
| 33 | ): string { |
||
| 34 | return preg_replace( |
||
| 35 | // Line folding after 75 characters: RFC-5545/3-1-content-lines |
||
| 36 | // Base on: sabre/vobject |
||
| 37 | '/( |
||
| 38 | (?:^.)? # 1 additional byte in first line because of missing single space (see next line) |
||
| 39 | .{74} # 75 bytes per line (1 byte is used for a single space added after every CRLF) |
||
| 40 | (?![\x80-\xbf]) # prevent splitting multibyte characters |
||
| 41 | (?=[^\r\n]) # exclude last match in a line to prevent extra match or linebreak |
||
| 42 | )/x', |
||
| 43 | "$1\n ", |
||
| 44 | $renderChildrenClosure() |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |