Code Duplication    Length = 15-15 lines in 2 locations

src/Distilleries/Messenger/MessengerServiceProvider.php 1 location

@@ 34-48 (lines=15) @@
31
     *
32
     * @return void
33
     */
34
    public function register()
35
    {
36
        $this->mergeConfigFrom(
37
            __DIR__.'/../../config/config.php',
38
            $this->package
39
        );
40
41
42
        $this->app['messenger'] = $this->app->share(function($app)
43
        {
44
            return new Message($app['config']->get('messenger'),new Client());
45
        });
46
47
        $this->alias();
48
    }
49
50
    /**
51
     * Get the services provided by the provider.

src/Distilleries/Messenger/MessengerLumenServiceProvider.php 1 location

@@ 26-40 (lines=15) @@
23
     *
24
     * @return void
25
     */
26
    public function register()
27
    {
28
        $this->mergeConfigFrom(
29
            __DIR__.'/../../config/config.php',
30
            $this->package
31
        );
32
33
34
        $this->app['messenger'] = $this->app->share(function($app)
35
        {
36
            return new Message($app['config']->get('messenger'),new Client());
37
        });
38
39
        $this->alias();
40
    }
41
42
    /**
43
     * Get the services provided by the provider.