Passed
Push — master ( e874bb...1e50c2 )
by noitran
03:10
created

User   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A posts() 0 3 1
A comments() 0 3 1
1
<?php
2
3
namespace Noitran\RQL\Tests\Stubs\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Database\Eloquent\Relations\HasMany;
7
8
class User extends Model
9
{
10
    /**
11
     * The attributes that aren't mass assignable.
12
     *
13
     * @var array
14
     */
15
    protected $guarded = [
16
        'id',
17
    ];
18
19
    /**
20
     * @return HasMany
21
     */
22
    public function comments(): HasMany
23
    {
24
        return $this->hasMany(Comment::class);
0 ignored issues
show
Bug introduced by
The type Noitran\RQL\Tests\Stubs\Models\Comment 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...
25
    }
26
27
    /**
28
     * @return HasMany
29
     */
30
    public function posts(): HasMany
31
    {
32
        return $this->hasMany(Post::class);
0 ignored issues
show
Bug introduced by
The type Noitran\RQL\Tests\Stubs\Models\Post 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...
33
    }
34
}
35