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

ICanBoogie / bind-event / 4260779252

pending completion
4260779252

push

github

Olivier Laviale
Add PHPCS and PHPStan

26 of 26 new or added lines in 3 files covered. (100.0%)

17 of 26 relevant lines covered (65.38%)

0.69 hits per line

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

60.0
/lib/Hooks.php
1
<?php
2

3
/*
4
 * This file is part of the ICanBoogie package.
5
 *
6
 * (c) Olivier Laviale <olivier.laviale@gmail.com>
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
namespace ICanBoogie\Binding\Event;
13

14
use ICanBoogie\Application;
15
use ICanBoogie\Event\Config;
16
use ICanBoogie\EventCollection;
17
use ICanBoogie\EventCollectionProvider;
18

19
final class Hooks
20
{
21
    public static function get_events(Application $app): EventCollection
22
    {
23
        static $events;
1✔
24

25
        return $events ??= self::make_events($app);
1✔
26
    }
27

28
    private static function make_events(Application $app): EventCollection
29
    {
30
        $events = new EventCollection($app->configs->config_for_class(Config::class));
×
31

32
        EventCollectionProvider::define(fn(): EventCollection => $events);
2✔
33

34
        return $events;
×
35
    }
36
}
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