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

Passed
Push — coverage-badge-dont-delete ( 9fd178...40d28c )
by
unknown
11:41
created

UserFromCookie::__invoke()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
cc 2
eloc 3
c 2
b 1
f 1
nc 2
nop 0
dl 0
loc 7
rs 10
1
<?php
2
3
namespace Backpack\CRUD\app\Library\Auth;
4
5
use Illuminate\Support\Facades\Cookie;
6
7
class UserFromCookie
8
{
9
    public function __invoke(): ?\Illuminate\Contracts\Auth\MustVerifyEmail
10
    {
11
        if (Cookie::has('backpack_email_verification')) {
12
            return config('backpack.base.user_model_fqn')::where(config('backpack.base.email_column'), Cookie::get('backpack_email_verification'))->first();
13
        }
14
15
        return null;
16
    }
17
}
18