LaravelTestMailServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 8
dl 0
loc 24
ccs 10
cts 10
cp 1
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
A boot() 0 7 1
1
<?php
2
3
namespace Resohead\LaravelTestMail;
4
5
use Illuminate\Support\ServiceProvider;
6
use Resohead\LaravelTestMail\TestMailCommand;
7
8
class LaravelTestMailServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     */
13 16
    public function boot()
14
    {
15 16
        $this->loadViewsFrom(__DIR__.'/../resources/views', 'laravel-test-mail');
16
17 16
        $this->publishes([
18 16
            __DIR__.'/../config/mail-test.php' => config_path('mail-test.php'),
19 16
        ], 'config');
20
21 16
    }
22
23
    /**
24
     * Register the application services.
25
     */
26 16
    public function register()
27
    {
28 16
        $this->mergeConfigFrom(__DIR__.'/../config/mail-test.php', 'mail-test');
29
30 16
        $this->commands([
31 16
            TestMailCommand::class,
32
        ]);
33 16
    }
34
}
35