Completed
Push — master ( ae5aca...b5fd01 )
by Rudy
04:16
created

SocialMapFavoritesServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 32
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 5 1
A register() 0 4 1
A setModelConnection() 0 3 1
1
<?php
2
namespace CTL\SocialMapFavorites;
3
4
use App\userData;
5
use Illuminate\Contracts\Http\Kernel;
6
use Illuminate\Support\ServiceProvider;
7
8
class SocialMapFavoritesServiceProvider extends ServiceProvider {
9
10
  /**
11
   * Bootstrap any application services.
12
   *
13
   * @return void
14
   */
15
  public function boot()
16
  {
17
        $this->package('CTL/SocialMapFavorites');
0 ignored issues
show
Documentation Bug introduced by
The method package does not exist on object<CTL\SocialMapFavo...voritesServiceProvider>? Since you implemented __call, maybe consider adding a @method annotation.

If you implement __call and you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.

This is often the case, when __call is implemented by a parent class and only the child class knows which methods exist:

class ParentClass {
    private $data = array();

    public function __call($method, array $args) {
        if (0 === strpos($method, 'get')) {
            return $this->data[strtolower(substr($method, 3))];
        }

        throw new \LogicException(sprintf('Unsupported method: %s', $method));
    }
}

/**
 * If this class knows which fields exist, you can specify the methods here:
 *
 * @method string getName()
 */
class SomeClass extends ParentClass { }
Loading history...
18
        $this->setModelConnection();
19
  }
20
21
  /**
22
   * Register any application services.
23
   *
24
   * This service provider is a great spot to register your various container
25
   * bindings with the application. As you can see, we are registering our
26
   * "Registrar" implementation here. You can add your own bindings too!
27
   *
28
   * @return void
29
   */
30
  public function register()
31
  {
32
33
  }
34
35
  public function setModelConnection(){
36
37
  }
38
39
}
40