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

DuplicateException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
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