Completed
Push — master ( 9538e5...1e74d1 )
by Jeroen
02:45
created

FollowServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 8 1
A register() 0 4 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
    public function boot()
14
    {
15
        $timestamp = date('Y_m_d_His', time());
16
        
17
        $this->publishes([
18
            __DIR__ . '/create_followers_table.php' => database_path('migrations/' . $timestamp . '_create_followers_table.php')
19
        ], 'migrations');
20
    }
21
22
    /**
23
     * Register the application services.
24
     *
25
     * @return void
26
     */
27
    public function register()
28
    {
29
        //
30
    }
31
}
32