Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1.0527 |
Changes | 0 |
1 | <?php |
||
32 | 1 | public function toArray() |
|
33 | { |
||
34 | return [ |
||
35 | 'aps' => [ |
||
36 | 'alert' => [ |
||
37 | 1 | 'title' => $this->limitString($this->notification->getTitle(), static::TITLE_LENGTH - 3), |
|
38 | 1 | 'body' => $this->limitString($this->notification->getBody(), static::BODY_LENGTH - 3), |
|
39 | 1 | ], |
|
40 | 'url-args' => [ |
||
41 | 1 | $this->notification->getId(), |
|
42 | ], |
||
43 | ], |
||
44 | ]; |
||
45 | } |
||
46 | |||
73 |