FollowServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 26
ccs 8
cts 8
cp 1
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 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