| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | protected function parseComponentInnerHtml(string $componentInnerHtml): string |
||
| 47 | { |
||
| 48 | $pattern = '/<\s*slot[^>]*name=[\'"](.*)[\'"][^>]*>((.|\n)*?)<\s*\/\s*slot>/m'; |
||
| 49 | |||
| 50 | return preg_replace_callback($pattern, function ($result) { |
||
| 51 | [$slot, $name, $contents] = $result; |
||
| 52 | |||
| 53 | return "@slot('{$name}'){$contents}@endslot"; |
||
| 54 | }, $componentInnerHtml); |
||
| 55 | } |
||
| 56 | } |
||
| 57 |