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.

SibsServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Apoca\Sibs;
4
5
use Apoca\Sibs\Services\SibsService;
6
use Illuminate\Support\ServiceProvider;
7
8
/**
9
 * Class SibsServiceProvider
10
 *
11
 * @package Apoca\Sibs
12
 */
13
class SibsServiceProvider extends ServiceProvider
14
{
15
    public function boot()
16
    {
17
        // Publish config files
18
        $this->publishes([
19
            __DIR__ . '/../config/sibs.php' => config_path('sibs.php'),
20
        ]);
21
    }
22
23
    public function register()
24
    {
25
        $this->mergeConfig();
26
27
        $this->app->bind('sibs', function () {
28
            return new SibsService();
29
        });
30
    }
31
32
    /**
33
     * Merges sibs's configs.
34
     *
35
     * @return void
36
     */
37
    private function mergeConfig(): void
38
    {
39
        $this->mergeConfigFrom(
40
            __DIR__ . '/../config/sibs.php',
41
            'sibs'
42
        );
43
    }
44
}
45