LaravelSiftScience   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 7 1
A register() 0 7 1
A provides() 0 4 1
1
<?php
2
3
namespace Pablumfication\LaravelSiftScience\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class LaravelSiftScience extends ServiceProvider
8
{
9
    /**
10
     * Perform post-registration booting of services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        $this->app->bind(
17
            'LaravelSiftScience',
18
            \Pablumfication\LaravelSiftScience\Services\SiftScienceService::class
19
        );
20
    }
21
22
    /**
23
     * Register any package services.
24
     *
25
     * @return void
26
     */
27
    public function register()
28
    {
29
        $this->mergeConfigFrom(
30
            __DIR__ . '/../../config/laravel-sift-science.php',
31
            'laravel-sift-science'
32
        );
33
    }
34
35
    /**
36
     * Get the services provided by the provider.
37
     *
38
     * @return array
39
     */
40
    public function provides()
41
    {
42
        return [];
43
    }
44
}
45