Completed
Push — master ( 32bd0c...7e8504 )
by Freek
01:18
created

InvalidSignatureEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Spatie\WebhookClient\Events;
4
5
use Illuminate\Http\Request;
6
7
class InvalidSignatureEvent
8
{
9
    /** @var \Illuminate\Http\Request */
10
    public $request;
11
12
    /** @var string|null */
13
    public $invalidSignature;
14
15
    public function __construct(Request $request, ?string $invalidSignature)
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...
16
    {
17
        $this->request = $request;
18
19
        $this->invalidSignature = $invalidSignature;
20
    }
21
}
22
23