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

mimmi20 / navigation-helper-htmlify / 16309288731

16 Jul 2025 03:00AM UTC coverage: 100.0%. First build
16309288731

Pull #311

github

web-flow
composer(deps-dev): bump the development-dependencies group with 3 updates

Updates the requirements on [infection/infection](https://github.com/infection/infection), [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) and [rector/rector](https://github.com/rectorphp/rector) to permit the latest version.

Updates `infection/infection` to 0.30.3
- [Release notes](https://github.com/infection/infection/releases)
- [Changelog](https://github.com/infection/infection/blob/master/CHANGELOG.md)
- [Commits](https://github.com/infection/infection/compare/0.30.1...0.30.3)

Updates `phpunit/phpunit` to 12.2.7
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/12.2.7/ChangeLog-12.2.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/12.2.6...12.2.7)

Updates `rector/rector` to 2.1.1
- [Release notes](https://github.com/rectorphp/rector/releases)
- [Commits](https://github.com/rectorphp/rector/compare/2.1.0...2.1.1)

---
updated-dependencies:
- dependency-name: infection/infection
  dependency-version: 0.30.3
  dependency-type: direct:development
  dependency-group: development-dependencies
- dependency-name: phpunit/phpunit
  dependency-version: 12.2.7
  dependency-type: direct:development
  dependency-group: development-dependencies
- dependency-name: rector/rector
  dependency-version: 2.1.1
  dependency-type: direct:development
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #311: composer(deps-dev): bump the development-dependencies group with 3 updates

72 of 72 relevant lines covered (100.0%)

7.96 hits per line

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

100.0
/src/HtmlifyFactory.php
1
<?php
2

3
/**
4
 * This file is part of the mimmi20/navigation-helper-htmlify package.
5
 *
6
 * Copyright (c) 2021-2025, Thomas Mueller <mimmi20@live.de>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types = 1);
13

14
namespace Mimmi20\NavigationHelper\Htmlify;
15

16
use Laminas\I18n\View\Helper\Translate;
17
use Laminas\ServiceManager\Factory\FactoryInterface;
18
use Laminas\View\Helper\EscapeHtml;
19
use Laminas\View\HelperPluginManager as ViewHelperPluginManager;
20
use Mimmi20\LaminasView\Helper\HtmlElement\Helper\HtmlElementInterface;
21
use Override;
22
use Psr\Container\ContainerExceptionInterface;
23
use Psr\Container\ContainerInterface;
24

25
use function assert;
26

27
final class HtmlifyFactory implements FactoryInterface
28
{
29
    /**
30
     * Create and return a navigation view helper instance.
31
     *
32
     * @param string            $requestedName
33
     * @param array<mixed>|null $options
34
     *
35
     * @throws ContainerExceptionInterface
36
     *
37
     * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
38
     * @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter
39
     */
40
    #[Override]
2✔
41
    public function __invoke(ContainerInterface $container, $requestedName, array | null $options = null): Htmlify
42
    {
43
        $plugin     = $container->get(ViewHelperPluginManager::class);
2✔
44
        $translator = null;
2✔
45

46
        assert($plugin instanceof ViewHelperPluginManager);
2✔
47

48
        if ($plugin->has(Translate::class)) {
2✔
49
            $translator = $plugin->get(Translate::class);
1✔
50

51
            assert($translator instanceof Translate);
1✔
52
        }
53

54
        $escaper = $plugin->get(EscapeHtml::class);
2✔
55
        $element = $container->get(HtmlElementInterface::class);
2✔
56

57
        assert($escaper instanceof EscapeHtml);
2✔
58
        assert($element instanceof HtmlElementInterface);
2✔
59

60
        return new Htmlify($escaper, $element, $translator);
2✔
61
    }
62
}
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