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.

FootballDataServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 8 2
A register() 0 10 1
1
<?php
2
3
namespace Johnathan\FootballData;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class FootballDataServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     */
12
    public function boot()
13
    {
14
        if ($this->app->runningInConsole()) {
15
            $this->publishes([
16
                __DIR__.'/../config/config.php' => config_path('football_data.php'),
17
            ], 'config');
18
        }
19
    }
20
21
    /**
22
     * Register the application services.
23
     */
24
    public function register()
25
    {
26
        // Automatically apply the package configuration
27
        $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'football_data');
28
29
        // Register the main class to use with the facade
30
        $this->app->singleton('football_data', function () {
31
            return new FootballData(config('football_data.auth_token'));
32
        });
33
    }
34
}
35