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

NeoIsRecursive / inertia-tempest / 17441710339

03 Sep 2025 05:49PM UTC coverage: 99.01% (-0.5%) from 99.497%
17441710339

push

github

NeoIsRecursive
style: fix linting and formatting

10 of 11 new or added lines in 2 files covered. (90.91%)

200 of 202 relevant lines covered (99.01%)

14.27 hits per line

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

90.91
/src/ManifestVersionResolver.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace NeoIsRecursive\Inertia;
6

7
use NeoIsRecursive\Inertia\Contracts\InertiaVersionResolver;
8
use Override;
9
use Tempest\Container\Container;
10

11
use function Tempest\root_path;
12

13
final readonly class ManifestVersionResolver implements InertiaVersionResolver
14
{
15
    public function __construct(
16
        public ?string $manifestPath = null,
17
    ) {}
55✔
18

19
    #[Override]
20
    public function resolve(Container $container): string
21
    {
22
        $manifestPath = $this->manifestPath ?? root_path('/public/build/manifest.json'); // @mago-expect best-practices/literal-named-argument
11✔
23

24
        if (!file_exists($manifestPath)) {
11✔
25
            return '';
10✔
26
        }
27

28
        $hash = hash_file(
1✔
29
            algo: 'xxh128',
1✔
30
            filename: $manifestPath,
1✔
31
        );
1✔
32

33
        if (!$hash) {
1✔
NEW
34
            return '';
×
35
        }
36

37
        return $hash;
1✔
38
    }
39
}
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