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 Setup Failed
Branch master (41c46a)
by Nikhil
09:01 queued 21s
created

NotificationWasCreated   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 28
ccs 0
cts 8
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A broadcastOn() 0 4 1
1
<?php
2
3
namespace App\Events;
4
5
use App\Notification;
6
use Illuminate\Queue\SerializesModels;
7
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
8
9
class NotificationWasCreated extends Event implements ShouldBroadcast
10
{
11
    use SerializesModels;
12
    /**
13
     * @var Notification
14
     */
15
    public $notification;
16
17
    /**
18
     * Create a new event instance.
19
     *
20
     * @param Notification $notification
21
     */
22
    public function __construct(Notification $notification)
23
    {
24
        $this->notification = $notification;
25
    }
26
27
    /**
28
     * Get the channels the event should be broadcast on.
29
     *
30
     * @return array
31
     */
32
    public function broadcastOn()
33
    {
34
        return ['default'];
35
    }
36
}
37