MigrationHelper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 11
ccs 8
cts 8
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A defaultColumns() 0 9 1
1
<?php
2
3
4
namespace JWTAuth\Database;
5
6
use Illuminate\Database\Schema\Blueprint;
7
8
class MigrationHelper
9
{
10 19
    public static function defaultColumns(Blueprint $table)
11
    {
12 19
        $table->id();
13 19
        $table->morphs('tokenable');
14 19
        $table->string('name');
15 19
        $table->string('jti', 64)->unique();
16 19
        $table->unsignedBigInteger('exp');
17 19
        $table->json('abilities')->nullable();
18 19
        $table->timestamps();
19
    }
20
}
21