iTunesServiceProvider   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\iTunesService;
6
use Illuminate\Support\ServiceProvider;
7
8
class iTunesServiceProvider extends ServiceProvider
9
{
10 132
    public function register(): void
11
    {
12
        app()->singleton('iTunes', static function (): iTunesService {
13 132
            return app(iTunesService::class);
14 132
        });
15 132
    }
16
}
17