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

mimmi20 / laminasviewrenderer-bootstrap-form / 12160906017

04 Dec 2024 01:37PM UTC coverage: 97.314%. Remained the same
12160906017

push

github

web-flow
Merge pull request #310 from mimmi20/updates

upgrade to PHP 8.3

60 of 61 new or added lines in 40 files covered. (98.36%)

38 existing lines in 7 files now uncovered.

2174 of 2234 relevant lines covered (97.31%)

25.52 hits per line

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

0.0
/src/HelperPluginManagerFactory.php
1
<?php
2

3
/**
4
 * This file is part of the mimmi20/laminasviewrenderer-bootstrap-form package.
5
 *
6
 * Copyright (c) 2021-2024, 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\LaminasView\BootstrapForm;
15

16
use Laminas\View\Helper\HelperInterface;
17
use Laminas\View\HelperPluginManager;
18
use Psr\Container\ContainerExceptionInterface;
19
use Psr\Container\ContainerInterface;
20

21
use function assert;
22
use function is_array;
23

24
final class HelperPluginManagerFactory
25
{
26
    /**
27
     * Create an instance of the requested class name.
28
     *
29
     * @return HelperPluginManager<(callable(): mixed)|HelperInterface>
30
     *
31
     * @throws ContainerExceptionInterface
32
     */
UNCOV
33
    public function __invoke(ContainerInterface $container): HelperPluginManager
×
34
    {
35
        $config = $container->get('config');
×
UNCOV
36
        assert(is_array($config));
×
37

UNCOV
38
        return new HelperPluginManager($container, $config['view_helpers'] ?? []);
×
39
    }
40
}
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