• 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

77.78
/src/Tempest/View/src/Elements/CollectionElement.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\View\Elements;
6

7
use Tempest\View\Element;
8

9
final class CollectionElement implements Element
10
{
11
    use IsElement;
12

13
    public function __construct(
30✔
14
        private readonly array $elements,
15
    ) {}
30✔
16

17
    /** @return \Tempest\View\Element[] */
UNCOV
18
    public function getElements(): array
×
19
    {
UNCOV
20
        return $this->elements;
×
21
    }
22

23
    public function compile(): string
30✔
24
    {
25
        $compiled = [];
30✔
26

27
        foreach ($this->elements as $element) {
30✔
28
            $compiled[] = $element->compile();
28✔
29
        }
30

31
        return implode(PHP_EOL, $compiled);
30✔
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