PivotalTrackerServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 2
c 2
b 1
f 0
lcom 0
cbo 1
dl 0
loc 33
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 20 1
A register() 0 3 1
1
<?php
2
3
namespace NotificationChannels\PivotalTracker;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class PivotalTrackerServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     */
12
    public function boot()
13
    {
14
        // Bootstrap code here.
15
16
        /*
17
         * Here's some example code we use for the pusher package.
18
19
        $this->app->when(Channel::class)
20
            ->needs(Pusher::class)
21
            ->give(function () {
22
                $pusherConfig = config('broadcasting.connections.pusher');
23
24
                return new Pusher(
25
                    $pusherConfig['key'],
26
                    $pusherConfig['secret'],
27
                    $pusherConfig['app_id']
28
                );
29
            });
30
         */
31
    }
32
33
    /**
34
     * Register the application services.
35
     */
36
    public function register()
37
    {
38
    }
39
}
40