Conditions | 4 |
Paths | 8 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | protected function asArray(): array |
||
29 | { |
||
30 | $message = $this->sanitize ? htmlspecialchars($this->message, ENT_QUOTES) : $this->message; |
||
31 | $title = $this->sanitize && $this->title ? htmlspecialchars($this->title, ENT_QUOTES) : $this->title; |
||
32 | $type = $this->type ?? NotificationType::$info; |
||
33 | |||
34 | return compact('message', 'title', 'type'); |
||
35 | } |
||
62 |