Completed
Push — master ( 52970f...c6d773 )
by Tristan
24:57 queued 10:40
created

UserUpdated   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace App\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
use App\Models\User;
7
8
class UserUpdated
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class UserUpdated
Loading history...
9
{
10
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\UserUpdated: $id, $class, $connection, $relations
Loading history...
11
12
    public $user;
13
14
    /**
0 ignored issues
show
Coding Style introduced by
Parameter $user should have a doc-comment as per coding-style.
Loading history...
15
     * Create a new event instance.
16
     *
17
     * @return void
18
     */
19 6
    public function __construct(User $user)
20
    {
21 6
        $this->user = $user;
22 6
    }
23
}
24