| Conditions | 8 |
| Paths | 32 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 8 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 1 | public function desc(): string |
|
| 24 | { |
||
| 25 | 1 | return |
|
| 26 | 1 | ($this->manufacturer ? $this->manufacturer . ' - ' : '') |
|
| 27 | 1 | . $this->brand . ' ' . $this->model |
|
| 28 | 1 | . ($this->types ? (' ' . $this->types) : '') |
|
| 29 | 1 | . (($this->from || $this->to) ? (' (' . ($this->from ?: '') . '-' . ($this->to ?: '') . ')') : '') |
|
| 30 | 1 | . ($this->country ? ', ' . $this->country : ''); |
|
| 31 | } |
||
| 38 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
integervalues, zero is a special case, in particular the following results might be unexpected: