HoneypotServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 7 1
A boot() 0 6 1
1
<?php
2
3
namespace Sfneal\Honeypot\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class HoneypotServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap any Honeypot services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        // Publish config file
17
        $this->publishes([
18
            __DIR__.'/../../config/honeypot.php' => config_path('honeypot.php'),
19
        ], 'config');
20
    }
21
22
    /**
23
     * Register any Honeypot services.
24
     *
25
     * @return void
26
     */
27
    public function register()
28
    {
29
        // Load config file
30
        $this->mergeConfigFrom(__DIR__.'/../../config/honeypot.php', 'honeypot');
31
32
        // Register Event ServiceProvider
33
        $this->app->register(\Spatie\Honeypot\HoneypotServiceProvider::class);
34
    }
35
}
36