• 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

60.0
/src/Tempest/View/src/ViewProcessorDiscovery.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\View;
6

7
use Tempest\Discovery\Discovery;
8
use Tempest\Discovery\DiscoveryLocation;
9
use Tempest\Discovery\IsDiscovery;
10
use Tempest\Reflection\ClassReflector;
11

12
final class ViewProcessorDiscovery implements Discovery
13
{
14
    use IsDiscovery;
15

16
    public function __construct(
660✔
17
        private readonly ViewConfig $viewConfig,
18
    ) {}
660✔
19

UNCOV
20
    public function discover(DiscoveryLocation $location, ClassReflector $class): void
×
21
    {
UNCOV
22
        if (! $class->implements(ViewProcessor::class)) {
×
23
            return;
×
24
        }
25

UNCOV
26
        $this->discoveryItems->add($location, [$class->getName()]);
×
27
    }
28

29
    public function apply(): void
660✔
30
    {
31
        foreach ($this->discoveryItems as [$className]) {
660✔
32
            $viewProcessor = new ClassReflector($className);
660✔
33

34
            $this->viewConfig->addViewProcessor($viewProcessor);
660✔
35
        }
36
    }
37
}
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