GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Pull Request — master (#23)
by Roelof Jan
05:50
created

PostModelDeleted   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace AloiaCms\Events;
4
5
use AloiaCms\Models\Contracts\ModelInterface;
6
use Illuminate\Broadcasting\InteractsWithSockets;
7
use Illuminate\Foundation\Events\Dispatchable;
8
use Illuminate\Queue\SerializesModels;
9
10
class PostModelDeleted
11
{
12
    use Dispatchable, InteractsWithSockets, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by AloiaCms\Events\PostModelDeleted: $id, $relations, $class, $connection, $keyBy
Loading history...
13
14
    public ModelInterface $model;
15
16
    /**
17
     * Create a new event instance.
18
     *
19
     * @return void
20
     */
21 3
    public function __construct(ModelInterface $model)
22
    {
23 3
        $this->model = $model;
24 3
    }
25
}
26