MigrationHelper::defaultColumns()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 7
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 9
ccs 8
cts 8
cp 1
crap 1
rs 10
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