Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Pull Request — development (#51)
by José
07:48
created

Uuids::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
crap 1
1
<?php
2
3
namespace DoeSangue;
4
5
use Webpatser\Uuid\Uuid;
6
7
/**
8
 * summary
9
 */
10
trait Uuids
11
{
12
    /**
13
     * Boot function from Laravel.
14
     */
15 5
    protected static function boot()
16
    {
17 5
        parent::boot();
18
19 5
        static::creating(function($model) {
20 3
          $model->{$model->getKeyName()} = Uuid::generate()->string;
21 5
        });
22 5
    }
23
}
24