UserStampsServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 26
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 8 1
A register() 0 4 1
1
<?php
2
3
namespace Sqits\UserStamps;
4
5
use Illuminate\Support\ServiceProvider;
6
use Sqits\UserStamps\Database\Schema\Macros\UserStampsMacro;
7
8
class UserStampsServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     *
13
     * @return void
14
     */
15
    public function boot()
16
    {
17
        $this->publishes([
18
            __DIR__.'/../config/userstamps.php' => config_path('userstamps.php'),
19
        ], 'config');
20
21
        $userStampsMacro = new UserStampsMacro();
22
        $userStampsMacro->register();
23
    }
24
25
    /**
26
     * Register the application services.
27
     *
28
     * @return void
29
     */
30
    public function register()
31
    {
32
        $this->mergeConfigFrom(
33
            __DIR__.'/../config/userstamps.php', 'userstamps'
34
        );
35
    }
36
}
37