NotifierServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 3
dl 0
loc 41
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 3 1
A register() 0 6 1
A provides() 0 4 1
1
<?php namespace Padosoft\Laravel\Notification\Notifier;
2
3
use Illuminate\Support\ServiceProvider;
4
5
class NotifierServiceProvider extends ServiceProvider {
6
7
	/**
8
	 * Indicates if loading of the provider is deferred.
9
	 *
10
	 * @var bool
11
	 */
12
	protected $defer = false;
13
14
	/**
15
	 * Bootstrap the application events.
16
	 *
17
	 * @return void
18
	 */
19
	public function boot()
20
	{
21
	}
22
23
	/**
24
	 * Register the service provider.
25
	 *
26
	 * @return void
27
	 */
28
	public function register()
29
	{
30
		$this->app->singleton('notifier', 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...
31
		    return new Notifier(session());
32
		});
33
	}
34
35
	/**
36
	 * Get the services provided by the provider.
37
	 *
38
	 * @return array
39
	 */
40
	public function provides()
41
	{
42
		return ['notifier'];
43
	}
44
45
}
46
47