Passed
Pull Request — master (#20)
by Hilmi Erdem
10:06
created

AuthenticationException::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 0
1
<?php
2
/*
3
 * Copyright (c) 2021. Hilmi Erdem Keren
4
 * license MIT
5
 */
6
7
namespace Erdemkeren\Otp\Exceptions;
8
9
use LogicException;
10
11
class AuthenticationException extends LogicException
12
{
13
    public static function create(): self
14
    {
15
        throw new static(
16
            'The otp middleware requires authentication via laravel guards.'
17
        );
18
    }
19
}
20