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 ( 8156a4...df5fb6 )
by Denis
01:02
created

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