Conditions | 5 |
Paths | 8 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 5 |
Changes | 8 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
23 | 3 | public function build($options) |
|
24 | { |
||
25 | 3 | $command = $this->path; |
|
26 | |||
27 | 3 | if (isset($options['title'])) { |
|
28 | 3 | $command .= " {$options['title']}"; |
|
29 | 3 | } |
|
30 | 3 | if (isset($options['message'])) { |
|
31 | 3 | $command .= " {$options['message']}"; |
|
32 | 3 | } |
|
33 | 3 | if (isset($options['sticky']) && $options['sticky'] === true) { |
|
34 | 3 | $command .= ' -t 0'; |
|
35 | 3 | } |
|
36 | |||
37 | 3 | return $command; |
|
38 | } |
||
39 | } |
||
40 |