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

orisai / nette-application / 42669583400

27 Sep 2026 11:28PM UTC coverage: 44.845% (-0.09%) from 44.935%
42669583400

push

github

mabar
Fix PHPStan reports

2 of 3 new or added lines in 2 files covered. (66.67%)

4 existing lines in 1 file now uncovered.

548 of 1222 relevant lines covered (44.84%)

7.8 hits per line

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

33.33
/src/FormMonitor/SignalFormExtractor.php
1
<?php declare(strict_types = 1);
2

3
namespace OriNette\Application\FormMonitor;
4

5
use Nette\Application\UI\Presenter;
6
use Nette\Forms\Form;
7
use Throwable;
8
use function array_pop;
9
use function implode;
10

11
final class SignalFormExtractor
12
{
13

14
        private FormStack $formStack;
15

16
        public function __construct(FormStack $formStack)
17
        {
18
                $this->formStack = $formStack;
24 ✔
19
        }
20

21
        public function extractForm(Presenter $presenter): void
22
        {
23
                $signal = $presenter->getSignal();
8 ✔
24
                if ($signal === null) {
8 ✔
25
                        return;
8 ✔
26
                }
27

28
                array_pop($signal);
×
29
                $signalPath = implode('-', $signal);
×
30

31
                try {
32
                        $component = $presenter[$signalPath] ?? null;
×
NEW
33
                } catch (Throwable $e) {
×
34
                        return;
×
35
                }
36

37
                if (!$component instanceof Form) {
×
38
                        return;
×
39
                }
40

41
                $this->formStack->add($component, $signalPath);
×
42
        }
43

44
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc