AppServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 7 1
1
<?php
2
3
namespace App\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
/**
8
 * Class AppServiceProvider.
9
 */
10
class AppServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * Register any application services.
14
     *
15
     * @return void
16
     */
17
    public function register()
18
    {
19
        // Register Mailing Services
20
        $this->app->singleton('mailer', function ($app) {
21
            return $app->loadComponent('mail', 'Illuminate\Mail\MailServiceProvider', 'mailer');
22
        });
23
    }
24
}
25