SynonymsServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 3 1
A register() 0 5 1
A provides() 0 3 1
1
<?php
2
3
namespace Hasantayyar\Synonyms;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class SynonymsServiceProvider 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
     * Bootstrap the application events.
18
     *
19
     * @return void
20
     */
21
    public function boot() {
22
        $this->package('hasantayyar/synonyms');
23
    }
24
25
    /**
26
     * Register the service provider.
27
     *
28
     * @return void
29
     */
30
    public function register() {
31
        $this->app['synonyms'] = $this->app->share(function($app) {
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
32
            return new Synonyms;
0 ignored issues
show
Bug introduced by
The call to Synonyms::__construct() misses a required argument $word.

This check looks for function calls that miss required arguments.

Loading history...
33
        });
34
    }
35
36
    /**
37
     * Get the services provided by the provider.
38
     *
39
     * @return array
40
     */
41
    public function provides() {
42
        return array();
43
    }
44
45
}
46