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