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

tempestphp / tempest-framework / 11292226413

11 Oct 2024 12:21PM UTC coverage: 82.134%. First build
11292226413

Pull #560

github

web-flow
Merge 5007f5fd5 into 571879663
Pull Request #560: chore: refactor view engine

429 of 471 new or added lines in 34 files covered. (91.08%)

6758 of 8228 relevant lines covered (82.13%)

38.48 hits per line

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

25.0
/src/Tempest/View/src/Components/Submit.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\View\Components;
6

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

10
final readonly class Submit implements ViewComponent
11
{
12
    public static function getName(): string
2✔
13
    {
14
        return 'x-submit';
2✔
15
    }
16

NEW
17
    public function compile(ViewComponentElement $element): string
×
18
    {
19
        $label = $element->getAttribute('label') ?? 'Submit';
×
20

21
        return <<<HTML
×
22
<div>
×
23
<input type="submit" value="{$label}" />
×
24
</div>
25
HTML;
×
26
    }
27
}
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

© 2025 Coveralls, Inc