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

68publishers / webpack-encore-bundle / 12719007642

10 Jan 2025 11:45PM UTC coverage: 91.379% (-4.7%) from 96.114%
12719007642

push

github

tg666
Stack update

- changed minimal PHP version to `8.3`
- dropped support for Latte v2
- dropped support for symfony components v5 and v6

318 of 348 relevant lines covered (91.38%)

0.91 hits per line

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

60.0
/src/Bridge/Latte/WebpackEncoreFunctionSet.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace SixtyEightPublishers\WebpackEncoreBundle\Bridge\Latte;
6

7
use SixtyEightPublishers\WebpackEncoreBundle\Asset\EntryPointLookupCollectionInterface;
8

9
/**
10
 * @internal
11
 */
12
final class WebpackEncoreFunctionSet
13
{
14
        private function __construct()
15
        {
16
        }
×
17

18
        /**
19
         * @return array<string, callable>
20
         */
21
        public static function functions(EntryPointLookupCollectionInterface $entryPointLookupCollection): array
22
        {
23
                return [
24
                        'encore_js_files' => static fn (string $entryName, ?string $entrypointName = NULL): array => $entryPointLookupCollection
1✔
25
                                ->getEntrypointLookup($entrypointName)
×
26
                                ->getJavaScriptFiles($entryName),
1✔
27

28
                        'encore_css_files' => static fn (string $entryName, ?string $entrypointName = NULL): array => $entryPointLookupCollection
1✔
29
                                ->getEntrypointLookup($entrypointName)
×
30
                                ->getCssFiles($entryName),
1✔
31

32
                        'encore_entry_exists' => static fn (string $entryName, ?string $entrypointName = NULL): bool => $entryPointLookupCollection
1✔
33
                                ->getEntrypointLookup($entrypointName)
×
34
                                ->entryExists($entryName),
1✔
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

© 2025 Coveralls, Inc