Passed
Push — master ( a9574a...4c3e72 )
by Arthur
07:41
created

BroadcastServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 8
ccs 5
cts 5
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Foundation\Providers;
4
5
use Illuminate\Support\Facades\Broadcast;
6
use Illuminate\Support\ServiceProvider;
7
8
class BroadcastServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap any application services.
12
     *
13
     * @return void
14
     */
15 41
    public function boot()
16
    {
17 41
        Broadcast::routes([
18 41
            'middleware' => ['api'],
19 41
            'domain'     => env('API_URL'),
20
        ]);
21
22 41
        require base_path('src/Foundation/Routes/channels.php');
23 41
    }
24
}
25