• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tempestphp / tempest-framework / 14049246919

24 Mar 2025 09:42PM UTC coverage: 79.353% (-0.04%) from 79.391%
14049246919

push

github

web-flow
feat(support): support array parameters in string manipulations (#1073)

48 of 48 new or added lines in 2 files covered. (100.0%)

735 existing lines in 126 files now uncovered.

10492 of 13222 relevant lines covered (79.35%)

90.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.62
/src/Tempest/Vite/src/ViteTagsComponent.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Vite;
6

7
use Tempest\View\Elements\ViewComponentElement;
8
use Tempest\View\ViewComponent;
9

10
final readonly class ViteTagsComponent implements ViewComponent
11
{
12
    public function __construct(
6✔
13
        private ViteConfig $viteConfig,
14
    ) {}
6✔
15

UNCOV
16
    public static function getName(): string
×
17
    {
UNCOV
18
        return 'x-vite-tags';
×
19
    }
20

21
    public function compile(ViewComponentElement $element): string
6✔
22
    {
23
        $entrypoints = match (true) {
6✔
24
            $element->hasAttribute('entrypoints') => '$entrypoints',
6✔
25
            $element->hasAttribute('entrypoint') => '$entrypoint',
5✔
26
            default => var_export($this->viteConfig->entrypoints, return: true), // @mago-expect best-practices/no-debug-symbols
2✔
27
        };
6✔
28

29
        return <<<HTML
6✔
30
            <?= \Tempest\\vite_tags({$entrypoints}) ?>
6✔
31
        HTML;
6✔
32
    }
33
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc