Completed
Pull Request — master (#91)
by Mahmoud
05:39
created

MainBroadcastServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace App\Port\Broadcast\Providers;
4
5
use Illuminate\Support\Facades\Broadcast;
6
use Illuminate\Support\ServiceProvider;
7
8
/**
9
 * Class MainBroadcastServiceProvider
10
 *
11
 * A.K.A app/Providers/MainBroadcastServiceProvider.php
12
 *
13
 * @author  Mahmoud Zalt  <[email protected]>
14
 */
15
class MainBroadcastServiceProvider extends ServiceProvider
16
{
17
18
    /**
19
     * Indicates if loading of the provider is deferred.
20
     *
21
     * @var bool
22
     */
23
    protected $defer = true;
24
25
    /**
26
     * Bootstrap any application services.
27
     *
28
     * @return void
29
     */
30
    public function boot()
31
    {
32
        Broadcast::routes();
33
34
//        require base_path('routes/channels.php');
0 ignored issues
show
Unused Code Comprehensibility introduced by
63% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
35
    }
36
}
37