Passed
Push — master ( 8652e1...ae54b4 )
by Robert
03:22
created

ServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 5 1
A register() 0 9 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
	public function boot()
10
	{
11
		$this->publishes([
12
			self::CONFIG_PATH => config_path('live-engage-laravel.php'),
13
		], 'config');
14
	}
15
16
	public function register()
17
	{
18
		$this->mergeConfigFrom(
19
			self::CONFIG_PATH,
20
			'live-engage-laravel'
21
		);
22
23
		$this->app->bind('live-engage-laravel', function() {
24
			return new LiveEngageLaravel();
25
		});
26
	}
27
}
28