GamificationServiceProvider::boot()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 10
rs 9.4285
cc 2
eloc 6
nc 2
nop 0
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