Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 9 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
52 | View Code Duplication | public function setHost(string $host) : self { |
|
53 | $this->host = trim($host); |
||
54 | |||
55 | if ($this->host === '') { |
||
56 | throw new EmptyArgumentException('host'); |
||
57 | } |
||
58 | |||
59 | return $this; |
||
60 | } |
||
61 | |||
91 |
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.