Completed
Push — master ( 2b0ce8...94c7b3 )
by ARCANEDEV
8s
created

RouteServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 14
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 7 2
1
<?php namespace Arcanedev\LaravelSeo\Providers;
2
3
use Arcanedev\LaravelSeo\Http\Middleware\RedirectsMissingPages;
4
use Arcanedev\Support\Providers\RouteServiceProvider as ServiceProvider;
5
use Illuminate\Contracts\Http\Kernel as HttpKernel;
6
7
/**
8
 * Class     RouteServiceProvider
9
 *
10
 * @package  Arcanedev\LaravelSeo\Providers
11
 * @author   ARCANEDEV <[email protected]>
12
 */
13
class RouteServiceProvider extends ServiceProvider
14
{
15
    /* -----------------------------------------------------------------
16
     |  Main Methods
17
     | -----------------------------------------------------------------
18
     */
19 78
    public function boot()
20
    {
21 78
        if (config('seo.redirector.enabled', false))
22 78
            $this->app->make(HttpKernel::class)->pushMiddleware(RedirectsMissingPages::class);
23
24 78
        parent::boot();
25 78
    }
26
}
27