SentryServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
namespace Skater4\LaravelSentryNotifications\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
use Skater4\LaravelSentryNotifications\Services\Sentry\Interfaces\SentryServiceInterface;
7
use Skater4\LaravelSentryNotifications\Services\Sentry\SentryService;
8
9
class SentryServiceProvider extends ServiceProvider
10
{
11
    public function register(): void
12
    {
13
        $this->app->singleton(SentryServiceInterface::class, function ($app) {
14
            return new SentryService(
15
                $app['sentry'],
16
                $app['config']['services']['laravel-sentry-notifications']['issues_url'],
17
            );
18
        });
19
    }
20
}
21