Completed
Push — master ( 3211c6...25350e )
by Pascal
01:59
created

GamificationServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 10 2
A register() 0 4 1
1
<?php
2
3
namespace Pbmedia\Gamification;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class GamificationServiceProvider extends ServiceProvider
8
{
9
    public function boot()
10
    {
11
        if (!class_exists('CreateGamificationPointsTable')) {
12
            $timestamp = date('Y_m_d_His', time());
13
14
            $this->publishes([
15
                __DIR__ . '/../resources/migrations/create_gamification_points_table.php.stub' => database_path('migrations/' . $timestamp . '_create_gamification_points_table.php'),
16
            ], 'migrations');
17
        }
18
    }
19
20
    public function register()
21
    {
22
23
    }
24
}
25