DownloadServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
c 0
b 0
f 0
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
1
<?php
2
3
namespace App\Providers;
4
5
use App\Services\DownloadService;
6
use Illuminate\Support\ServiceProvider;
7
8
class DownloadServiceProvider extends ServiceProvider
9
{
10 132
    public function register(): void
11
    {
12
        app()->singleton('Download', static function (): DownloadService {
13 2
            return app(DownloadService::class);
14 132
        });
15 132
    }
16
}
17