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

heimrichhannot / contao-encore-bundle / 27136120371

08 Jun 2026 12:00PM UTC coverage: 77.539% (+0.3%) from 77.228%
27136120371

push

github

koertho
support deferred entries

32 of 36 new or added lines in 6 files covered. (88.89%)

649 of 837 relevant lines covered (77.54%)

2.3 hits per line

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

80.0
/src/EntryPoint/EntryPoint.php
1
<?php
2

3
namespace HeimrichHannot\EncoreBundle\EntryPoint;
4

5
class EntryPoint
6
{
7
    public function __construct(
8
        public readonly string $name,
9
        public readonly bool $active = true,
10
        public readonly bool $head = false,
11
        public readonly bool $requiresCss = false,
12
        public readonly string $origin = '',
13
        public readonly string $extension = '',
14
        public readonly bool $defer  = false,
15
    ) {
16
    }
5✔
17

18
    public function getScriptExtraAttributes(): array
19
    {
20
        $attributes = [];
2✔
21

22
        if ($this->defer) {
2✔
NEW
23
            $attributes['defer'] = 'defer';
×
24
        }
25

26
        return $attributes;
2✔
27
    }
28
}
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