CryptServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 10 1
A register() 0 4 1
1
<?php
2
namespace Tzsk\Crypt\Provider;
3
4
use Illuminate\Support\ServiceProvider;
5
use Tzsk\Crypt\Crypter;
6
7
class CryptServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Boot Service Provider.
11
     */
12
    public function boot()
13
    {
14
        $this->publishes([
15
            __DIR__.'/../Config/crypt.php' => config_path('crypt.php'),
16
        ], 'config');
17
18
        $this->app->bind('tzsk-crypt', function () {
19
            return new Crypter();
20
        });
21
    }
22
23
    /**
24
     * Register the service provider.
25
     *
26
     * @return void
27
     */
28
    public function register()
29
    {
30
        //
31
    }
32
}
33