Passed
Push — master ( f9e29f...dc59a3 )
by Robert
07:33
created

ServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 20
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 9 1
A boot() 0 5 1
1
<?php
2
3
namespace LivePersonInc\LiveEngageLaravel;
4
5
class ServiceProvider extends \Illuminate\Support\ServiceProvider
6
{
7
	const CONFIG_PATH = __DIR__ . '/../config/live-engage-laravel.php';
8
9 1
	public function boot()
10
	{
11 1
		$this->publishes([
12 1
			self::CONFIG_PATH => config_path('live-engage-laravel.php'),
13 1
		], 'config');
14 1
	}
15
16 1
	public function register()
17
	{
18 1
		$this->mergeConfigFrom(
19 1
			self::CONFIG_PATH,
20 1
			'live-engage-laravel'
21
		);
22
23
		$this->app->bind('live-engage-laravel', function() {
24 1
			return new LiveEngageLaravel();
25 1
		});
26 1
	}
27
}
28