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   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 14
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 8 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