Test Setup Failed
Pull Request — master (#150)
by Nick
14:47 queued 06:28
created

BroadcastServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 12
ccs 0
cts 3
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 5 1
1
<?php
2
/**
3
 * Broadcast Service Provider.
4
 *
5
 * @package App\Providers
6
 *
7
 * @author    Taylor Otwell <[email protected]>
8
 * @copyright 2018-2020 Nick Menke
9
 *
10
 * @link https://github.com/nlmenke/vertebrae
11
 */
12
13
declare(strict_types=1);
14
15
namespace App\Providers;
16
17
use Broadcast;
18
use Illuminate\Support\ServiceProvider;
19
20
/**
21
 * The Broadcast service provider.
22
 *
23
 * This service provider is responsible for bootstrapping and registering the
24
 * application's broadcast services.
25
 *
26
 * @since 0.0.0-framework introduced
27
 */
28
class BroadcastServiceProvider extends ServiceProvider
29
{
30
    /**
31
     * Bootstrap any application services.
32
     *
33
     * @return void
34
     */
35
    public function boot(): void
36
    {
37
        Broadcast::routes();
38
39
        require base_path('routes/channels.php');
40
    }
41
}
42