Test Failed
Pull Request — main (#64)
by Lode
08:15
created

DuplicateException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace alsvanzelf\jsonapi\exceptions;
4
5
use alsvanzelf\jsonapi\exceptions\Exception;
6
7
class DuplicateException extends Exception {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class DuplicateException
Loading history...
8
	public function __construct($message='', $code=409, $previous=null) {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function __construct()
Loading history...
Documentation introduced by
The return type could not be reliably inferred; please add a @return annotation.

Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a @return annotation as described here.

Loading history...
9
		return parent::__construct($message, $code, $previous);
0 ignored issues
show
Bug introduced by
Constructors do not have meaningful return values, anything that is returned from here is discarded. Are you sure this is correct?
Loading history...
10
	}
11
}
12