Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( 24da77...3cb3b4 )
by Denis
01:19 queued 11s
created

CentrifugoServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
declare(strict_types=1);
3
4
namespace denis660\Centrifugo;
5
6
use GuzzleHttp\Client as HttpClient;
7
use Illuminate\Broadcasting\BroadcastManager;
8
use Illuminate\Support\ServiceProvider;
9
10
class CentrifugoServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * Add centrifugo broadcaster.
14
     *
15
     * @param \Illuminate\Broadcasting\BroadcastManager $broadcastManager
16
     */
17
    public function boot(BroadcastManager $broadcastManager)
18
    {
19
        $broadcastManager->extend('centrifugo', function ($app) {
20
            return new CentrifugoBroadcaster($app->make('centrifugo'));
21
        });
22
    }
23
24
    /**
25
     * Register the service provider.
26
     *
27
     * @return void
28
     */
29
    public function register()
30
    {
31
        $this->app->singleton('centrifugo', function ($app) {
32
            $config = $app->make('config')->get('broadcasting.connections.centrifugo');
33
            $http = new HttpClient();
34
35
            return new Centrifugo($config, $http);
36
        });
37
38
        $this->app->alias('centrifugo', 'denis660\Centrifugo\Centrifugo');
39
        $this->app->alias('centrifugo', 'denis660\Centrifugo\Contracts\Centrifugo');
40
    }
41
}
42