Passed
Push — master ( 09e88c...38c1a8 )
by Septianata
04:42 queued 02:44
created

HasFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A factory() 0 3 1
1
<?php
2
3
namespace Ianrizky\Illuminate\Database\Eloquent\Factories;
4
5
use Illuminate\Database\Eloquent\FactoryBuilder;
6
7
trait HasFactory
8
{
9
    /**
10
     * Get a new factory instance for the model.
11
     *
12
     * @return \Illuminate\Database\Eloquent\FactoryBuilder
13
     */
14
    public static function factory(): FactoryBuilder
15
    {
16
        return factory(static::class);
17
    }
18
}
19