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 ( d5e3a8...215c9a )
by Denis
09:03
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
3
declare(strict_types=1);
4
5
namespace denis660\Centrifugo;
6
7
use GuzzleHttp\Client as HttpClient;
8
use Illuminate\Broadcasting\BroadcastManager;
9
use Illuminate\Support\ServiceProvider;
10
11
class CentrifugoServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * Add centrifugo broadcaster.
15
     *
16
     * @param \Illuminate\Broadcasting\BroadcastManager $broadcastManager
17
     */
18
    public function boot(BroadcastManager $broadcastManager)
19
    {
20
        $broadcastManager->extend('centrifugo', function ($app) {
21
            return new CentrifugoBroadcaster($app->make('centrifugo'));
22
        });
23
    }
24
25
    /**
26
     * Register the service provider.
27
     *
28
     * @return void
29
     */
30
    public function register()
31
    {
32
        $this->app->singleton('centrifugo', function ($app) {
33
            $config = $app->make('config')->get('broadcasting.connections.centrifugo');
34
            $http = new HttpClient();
35
36
            return new Centrifugo($config, $http);
37
        });
38
39
        $this->app->alias('centrifugo', 'denis660\Centrifugo\Centrifugo');
40
        $this->app->alias('centrifugo', 'denis660\Centrifugo\Contracts\Centrifugo');
41
    }
42
}
43