| Conditions | 4 |
| Paths | 8 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | protected function asArray(): array |
||
| 19 | { |
||
| 20 | $message = $this->sanitize ? htmlspecialchars($this->message, ENT_QUOTES) : $this->message; |
||
| 21 | $title = $this->sanitize && $this->title ? htmlspecialchars($this->title, ENT_QUOTES) : $this->title; |
||
| 22 | $type = $this->type; |
||
| 23 | |||
| 24 | return compact('message', 'title', 'type'); |
||
| 25 | } |
||
| 52 |