BadCredentialsException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 2
1
<?php
2
3
namespace Axsor\PhpIPAM\Exceptions;
4
5
use Throwable;
6
7
class BadCredentialsException extends \Exception
8
{
9
    public function __construct($message = '', $code = 0, Throwable $previous = null)
10
    {
11
        parent::construct($message ?: 'Can not connect to PhpIPAM', $code, $previous);
0 ignored issues
show
Bug introduced by
The method construct() does not exist on Exception. Did you maybe mean __construct()? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

11
        parent::/** @scrutinizer ignore-call */ 
12
                construct($message ?: 'Can not connect to PhpIPAM', $code, $previous);

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
12
    }
13
}
14