HipChatServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 3
dl 0
loc 19
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 13 1
1
<?php
2
3
namespace NotificationChannels\HipChat;
4
5
use GuzzleHttp\Client as HttpClient;
6
use Illuminate\Support\ServiceProvider;
7
8
class HipChatServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     */
13
    public function boot()
14
    {
15
        $this->app->when(HipChatChannel::class)
16
            ->needs(HipChat::class)
17
            ->give(function () {
18
                return new HipChat(
19
                    new HttpClient,
20
                    config('services.hipchat.url'),
21
                    config('services.hipchat.token'),
22
                    config('services.hipchat.room')
23
                );
24
            });
25
    }
26
}
27