Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 9 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
32 | View Code Duplication | public function setPath(string $path) : self { |
|
33 | $this->path = trim($path); |
||
34 | |||
35 | if ($this->path === '') { |
||
36 | throw new EmptyArgumentException('path'); |
||
37 | } |
||
38 | |||
39 | return $this; |
||
40 | } |
||
41 | |||
53 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.