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.
Passed
Push — master ( f3aeaa...744477 )
by Toby
01:09 queued 10s
created

AddLinkDataToRequest::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 8
ccs 4
cts 4
cp 1
rs 10
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
4
namespace Linkeys\UrlSigner\Middleware;
5
6
7
use Closure;
8
use Illuminate\Database\Eloquent\ModelNotFoundException;
9
use Linkeys\UrlSigner\Contracts\Models\Link;
10
use Linkeys\UrlSigner\Exceptions\LinkNotFoundException;
11
use Linkeys\UrlSigner\Support\LinkRepository\LinkRepository;
12
use Linkeys\UrlSigner\Support\UrlManipulator\UrlManipulator;
13
use Symfony\Component\HttpFoundation\Request;
14
15
class AddLinkDataToRequest
16
{
17
18
19 1
    public function handle(Request $request, Closure $next)
20
    {
21
22 1
        $link = $request->get('link');
23
24 1
        $request->attributes->add($link->data);
25
26 1
        return $next($request);
27
    }
28
29
}