Code Duplication    Length = 7-7 lines in 2 locations

src/Provider/ServiceProvider.php 1 location

@@ 23-29 (lines=7) @@
20
21
    public function register()
22
    {
23
        $this->getContainer()->share(Event::class, function () {
24
            $app = $this->getContainer()->get(Application::class);
25
            $service = $this->getContainer()->get(Service::class);
26
            $pool = $this->getContainer()->get(Pool::class);
27
            $filesystem = $this->getContainer()->get(Filesystem::class);
28
            return new Event($app, $service, $pool, $filesystem);
29
        });
30
31
        $this->getContainer()->share(Service::class, function () {
32
            $config = $this->getContainer()->get(Config::class);

src/Provider/CoreProvider.php 1 location

@@ 31-37 (lines=7) @@
28
29
    public function register()
30
    {
31
        $this->getContainer()->share(Config::class, function () {
32
            $app = $this->getContainer()->get(Application::class);
33
            $framework = $this->getContainer()->get(Framework::class);
34
            $fs = $this->getContainer()->get(Filesystem::class);
35
            $converter = $this->getContainer()->get(Converter::class);
36
            return new Config($app, $framework, $fs, $converter);
37
        });
38
39
        $this->getContainer()->share(Cache::class, function () {
40
            $fs = $this->getContainer()->get(Filesystem::class);