GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

CoinbaseServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php namespace Yani\Coinbase;
2
3
use Illuminate\Support\ServiceProvider;
4
use GuzzleHttp\Client as Guzzle;
5
6
class CoinbaseServiceProvider extends ServiceProvider {
7
8
	/**
9
	 * Indicates if loading of the provider is deferred.
10
	 *
11
	 * @var bool
12
	 */
13
	protected $defer = false;
14
15
	/**
16
	 * Bootstrap the application events.
17
	 *
18
	 * @return void
19
	 */
20
	public function boot()
21
	{
22
		$config_path = $this->app['path.config'] . DIRECTORY_SEPARATOR . 'coinbase.php';
23
		$this->publishes([__DIR__ . '/../../config/config.php' => $config_path]);
24
	}
25
26
	/**
27
	 * Register the service provider.
28
	 *
29
	 * @return void
30
	 */
31
	public function register()
32
	{
33
		$this->mergeConfigFrom(__DIR__ . '/../../config/config.php', 'coinbase');
34
35
		$this->app->singleton('coinbase', function ($app) {
36
			return new CoinbaseClient(
37
				new Guzzle,
38
				$app['config']->get('coinbase.apiKey'),
39
				$app['config']->get('coinbase.apiSecret'),
40
				$app['config']->get('coinbase.endpoint')
41
			);
42
		});
43
	}
44
45
	/**
46
	 * Get the services provided by the provider.
47
	 *
48
	 * @return array
49
	 */
50
	public function provides()
51
	{
52
		return ['coinbase'];
53
	}
54
}
55