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.

LumenServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 4
dl 0
loc 33
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 15 1
A register() 0 4 1
1
<?php
2
3
namespace EllipseSynergie\ApiResponse\Laravel;
4
5
use Illuminate\Support\ServiceProvider;
6
use League\Fractal\Manager;
7
8
/**
9
 * Class LumenServiceProvider
10
 *
11
 * For the full copyright and license information, please view the LICENSE
12
 * file that was distributed with this source code.
13
 *
14
 * @package EllipseSynergie\ApiResponse\Laravel
15
 * @author Maxime Beaudoin <[email protected]>
16
 */
17
class LumenServiceProvider extends ServiceProvider
18
{
19
    /**
20
     * Register the service provider.
21
     *
22
     * @return void
23
     */
24
    public function boot()
25
    {
26
        $manager = new Manager;
27
28
        // If you have to customize the manager instance, like setting a custom serializer,
29
        // I strongly suggest you to create your own service provider and add you manager configuration action here
30
        // Here some example if you want to set a custom serializer :
31
        // $manager->setSerializer(\League\Fractal\Serializer\JsonApiSerializer);
32
33
        // Are we going to try and include embedded data?
34
        $manager->parseIncludes(explode(',', $this->app['Illuminate\Http\Request']->get('include')));
35
36
        //Set the response instance properly
37
        $this->app->instance('EllipseSynergie\ApiResponse\Contracts\Response', new Response($manager));
38
    }
39
40
    /**
41
     * Register any application services.
42
     *
43
     * @return void
44
     */
45
    public function register()
46
    {
47
        //
48
    }
49
}
50