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

AuthenticationException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
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