Passed
Push — feature/screening-plan-redux ( 7c22ad...c62e79 )
by Chris
11:18
created

UserCreated   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
3
namespace App\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
use App\Models\User;
7
8
class UserCreated
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\UserCreated: $id, $class, $connection, $relations
Loading history...
11
12
    public $user;
1 ignored issue
show
introduced by
Property \App\Events\UserCreated::$user does not have @var annotation.
Loading history...
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
13
14
    /**
1 ignored issue
show
Coding Style Documentation introduced by
Doc comment for parameter "$user" missing
Loading history...
15
     * Create a new event instance.
16
     *
17
     * @return void
18
     */
19 55
    public function __construct(User $user)
20
    {
21 55
        $this->user = $user;
22 55
    }
23
}
24