FollowServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
crap 1
1
<?php
2
namespace Jeroenherczeg\Dog;
3
4
use Illuminate\Support\ServiceProvider;
5
6
class FollowServiceProvider extends ServiceProvider
7
{
8
    /**
9
     * Bootstrap the application services.
10
     *
11
     * @return void
12
     */
13 18
    public function boot()
14
    {
15 18
        $timestamp = date('Y_m_d_His', time());
16
        
17 18
        $this->publishes([
18 18
            __DIR__ . '/create_followers_table.php' => database_path('migrations/' . $timestamp . '_create_followers_table.php')
19 18
        ], 'migrations');
20 18
    }
21
22
    /**
23
     * Register the application services.
24
     *
25
     * @return void
26
     */
27 18
    public function register()
28
    {
29
        //
30 18
    }
31
}
32