AclServiceProvider::publishFiles()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
crap 1
1
<?php
2
3
namespace z1haze\Acl\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class AclServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     *
12
     */
13 57
    public function boot()
14
    {
15 57
        $this->publishFiles();
16
17 57
        $this->loadMigrationsFrom(__DIR__ . '/../../../migrations');
18 57
    }
19
20
    /**
21
     * Register the application services.
22
     *
23
     * @return void
24
     */
25 57
    public function register()
26
    {
27
        //
28 57
    }
29
30
    /**
31
     * Publish all of our package files to the appropriate laravel app directories
32
     */
33 57
    protected function publishFiles()
34
    {
35 57
        $this->publishes([
36 57
            __DIR__ . '/../../../config/laravel-acl.php' => config_path('laravel-acl.php')
37 57
        ], 'config');
38
    }
39
}