Passed
Push — master ( f22f3e...23161b )
by Stephen
02:08
created

RedisHelpersServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

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

2 Methods

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