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.

ServicesProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 8 1
A registerReceitaFederal() 0 6 1
A registerSintegra() 0 6 1
1
<?php namespace zServices\Laravel;
2
3
use zServices\Sintegra\Search;
4
use zServices\ReceitaFederal\Search as RFSearch;
5
use Illuminate\Support\ServiceProvider;
6
7
class ServicesProvider extends ServiceProvider {
8
9
  /**
10
   * Indicates if loading of the provider is deferred.
11
   *
12
   * @var bool
13
   */
14
  protected $defer = false;
15
16
  /**
17
   * Register the service provider.
18
   *
19
   * @return void
20
   */
21
  public function register()
22
  {
23
  	$this->registerSintegra();
24
  	$this->registerReceitaFederal();
25
26
  	$this->app->alias('Sintegra', 'zServices\Sintegra\Search');
27
  	$this->app->alias('ReceitaFederal', 'zServices\ReceitaFederal\Search');
28
  }
29
30
  /**
31
   * Register the Sintegra instance.
32
   *
33
   * @return void
34
   */
35
  protected function registerReceitaFederal()
36
  {
37
  	$this->app->bind('ReceitaFederal', function() {
38
  		return new RFSearch;
39
  	});
40
  }
41
42
  /**
43
   * Register the Sintegra instance.
44
   *
45
   * @return void
46
   */
47
  protected function registerSintegra()
48
  {
49
  	$this->app->bind('Sintegra', function() {
50
  		return new Search;
51
  	});
52
  }
53
}