Passed
Pull Request — main (#25)
by Seth
12:46
created

ReleaseNote   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 19
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A newFactory() 0 3 1
1
<?php
2
3
namespace SaasReady\Models;
4
5
use Illuminate\Database\Eloquent\Factories\HasFactory;
6
use Illuminate\Database\Eloquent\Model;
7
use Illuminate\Database\Eloquent\SoftDeletes;
8
use SaasReady\Database\Factories\ReleaseNoteFactory;
9
use SaasReady\Traits\HasUuid;
0 ignored issues
show
Bug introduced by
The type SaasReady\Traits\HasUuid was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
10
11
class ReleaseNote extends Model
12
{
13
    use HasFactory;
14
    use SoftDeletes;
15
    use HasUuid;
16
17
    protected $table = 'release_notes';
18
19
    protected $fillable = [
20
        'version',
21
        'note',
22
    ];
23
24
    /**
25
     * @codeCoverageIgnore
26
     */
27
    protected static function newFactory(): ReleaseNoteFactory
28
    {
29
        return ReleaseNoteFactory::new();
30
    }
31
}
32