LaravelTestMailServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 7
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
crap 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