RevaluationServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A register() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the overtrue/laravel-revaluation.
5
 *
6
 * (c) overtrue <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Overtrue\LaravelRevaluation;
13
14
use Illuminate\Support\ServiceProvider;
15
16
class RevaluationServiceProvider extends ServiceProvider
17
{
18
    /**
19
     * Application bootstrap event.
20
     */
21
    public function boot()
22
    {
23
        $this->publishes([__DIR__.'/config.php' => config_path('/revaluation.php')]);
24
    }
25
26
    /**
27
     * Register the service provider.
28
     */
29
    public function register()
30
    {
31
        setlocale(LC_MONETARY, config('app.locale'));
32
33
        $this->mergeConfigFrom(__DIR__.'/config.php', 'revaluation');
34
    }
35
}
36