Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( 878613...5184b8 )
by Mark
03:54
created

WebsiteWasVisited::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Events;
4
5
use Illuminate\Broadcasting\Channel;
6
use Illuminate\Http\Request;
7
use Illuminate\Queue\SerializesModels;
8
use Illuminate\Broadcasting\PrivateChannel;
9
use Illuminate\Broadcasting\PresenceChannel;
10
use Illuminate\Foundation\Events\Dispatchable;
11
use Illuminate\Broadcasting\InteractsWithSockets;
12
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
13
14
class WebsiteWasVisited
15
{
16
    use Dispatchable, InteractsWithSockets, SerializesModels;
17
18
    /**
19
     * @var Request
20
     */
21
    public $request;
22
23
    /**
24
     * Create a new event instance.
25
     *
26
     * @param Request $request
27
     */
28
    public function __construct(Request $request)
0 ignored issues
show
Bug introduced by
You have injected the Request via parameter $request. This is generally not recommended as there might be multiple instances during a request cycle (f.e. when using sub-requests). Instead, it is recommended to inject the RequestStack and retrieve the current request each time you need it via getCurrentRequest().
Loading history...
29
    {
30
        $this->request = $request;
31
    }
32
33
    /**
34
     * Get the channels the event should broadcast on.
35
     *
36
     * @return \Illuminate\Broadcasting\Channel|array
37
     */
38
    public function broadcastOn()
39
    {
40
        return new PrivateChannel('channel-name');
41
    }
42
}
43