Completed
Push — master ( 26460e...baa722 )
by Marceau
45:49 queued 44:18
created

InvalidUserProvider::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 4
dl 4
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Lab404\Impersonate\Exceptions;
4
5
use Throwable;
6
7 View Code Duplication
class InvalidUserProvider extends \Exception
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
8
{
9
    public function __construct(string $guard, $message = "", $code = 0, Throwable $previous = null)
10
    {
11
        parent::__construct(sprintf('Invalid user provider for guard %s', $guard), $code, $previous);
12
    }
13
}