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 — add-email-confirmation ( 1c36a6...7ea81f )
by Pedro
12:36
created

UserFromCookie   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
c 1
b 0
f 1
dl 0
loc 8
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 6 2
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
        return null;
15
    }
16
}