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.

GopayServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 3
dl 0
loc 34
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 1
A register() 0 14 2
1
<?php
2
/**
3
 * Created by Damián Imrich / Haze Studio.
4
 * Date: 22.11.2016
5
 * Time: 14:45
6
 */
7
8
namespace HazeStudio\LaravelGoPaySDK;
9
10
use HazeStudio\LaravelGoPaySDK\Events\PaymentCreated;
11
use Illuminate\Support\ServiceProvider;
12
13
class GopayServiceProvider extends ServiceProvider
14
{
15
    /**
16
     * Bootstrap the application services.
17
     *
18
     * @return void
19
     */
20
    public function boot()
21
    {
22
        $this->publishes([
23
            __DIR__.'/config.php' => config_path('gopay.php'),
24
        ]);
25
    }
26
27
    /**
28
     * Register the application services.
29
     *
30
     * @return void
31
     */
32
    public function register()
33
    {
34
        if(is_dir($vendor = __DIR__.'/../vendor')){
35
            require_once $vendor.'/autoload.php';
36
        }
37
38
        $this->mergeConfigFrom(
39
            __DIR__.'/config.php', 'gopay'
40
        );
41
        
42
        $this->app->singleton('GopaySDK', function ($app) {
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
43
            return new GoPaySDK();
44
        });
45
    }
46
}