WhoopsServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
1
<?php
2
namespace CheatCodes\LaravelWhoops;
3
4
use Illuminate\Contracts\Debug\ExceptionHandler;
5
use Illuminate\Support\ServiceProvider;
6
7
class WhoopsServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Overwrite the default ExceptionHandler
11
     *
12
     * @return void
13
     */
14
    public function register()
15
    {
16
        $this->app->singleton(ExceptionHandler::class, WhoopsExceptionHandler::class);
17
    }
18
}
19