SlackServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 7
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Gahlawat\Slack;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class SlackServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     */
12
    public function boot()
13
    {
14
        // Publish Config
15
        $this->publishes([
16
            __DIR__ . '/../config/slack.php' => config_path('slack.php'),
17
        ]);
18
    }
19
20
    /**
21
     * Register the application services.
22
     */
23
    public function register()
24
    {
25
        // Register Facade
26
        $this->app->bind('gahlawat.slack', function ($app) {
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
27
            return new Slack;
28
        });
29
    }
30
}
31