| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | public function __invoke(string $expression): string |
||
| 8 | { |
||
| 9 | $expressionParts = explode(',', $expression, 2); |
||
| 10 | |||
| 11 | $componentPath = $expressionParts[0]; |
||
| 12 | $props = trim($expressionParts[1] ?? '[]'); |
||
| 13 | |||
| 14 | return "<?php echo app(app(Spatie\ViewComponents\ComponentFinder::class)->find({$componentPath}), ". |
||
| 15 | "{$props})->toHtml(); ?>"; |
||
| 16 | } |
||
| 17 | } |
||
| 18 |