GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#4)
by Nikhil
35:12 queued 24:06
created

FractalServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Test Coverage

Coverage 37.5%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 5
dl 0
loc 19
ccs 3
cts 8
cp 0.375
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 13 1
1
<?php
2
3
namespace App\Providers;
4
5
use App\Serializers\DataSerializer;
6
use Illuminate\Support\ServiceProvider;
7
use League\Fractal\Manager;
8
use Spatie\Fractal\Fractal;
9
10
class FractalServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * Register the application services.
14
     */
15
    public function register()
16
    {
17 90
        $this->app->bind('fractal', function () {
18
19
            $manager = new Manager();
20
21
            $fractal = new Fractal($manager);
22
            $fractal->serializeWith(new DataSerializer);
23
            $fractal->parseIncludes(request('include', []));
24
25
            return $fractal;
26 90
        });
27 90
    }
28
}
29