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::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 9.7666
c 0
b 0
f 0
cc 1
nc 1
nop 0
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