LazyJsonServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 3 1
1
<?php
2
3
namespace Cerbero\LazyJson\Providers;
4
5
use Cerbero\LazyJson\Macro;
6
use Illuminate\Support\LazyCollection;
7
use Illuminate\Support\ServiceProvider;
8
9
/**
10
 * The service provider.
11
 *
12
 */
13
class LazyJsonServiceProvider extends ServiceProvider
14
{
15
    /**
16
     * Execute logic after the service provider is booted.
17
     *
18
     * @return void
19
     */
20 9
    public function boot()
21
    {
22 9
        LazyCollection::macro('fromJson', new Macro());
23 9
    }
24
}
25