Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | 2 | public static function getRecipients($message, $associated = false) |
|
20 | { |
||
21 | 2 | $recipients = array_merge( |
|
22 | 2 | (array) $message->getTo(), |
|
23 | 2 | (array) $message->getReplyTo(), |
|
24 | 2 | (array) $message->getCc(), |
|
25 | 2 | (array) $message->getBcc() |
|
26 | 2 | ); |
|
27 | |||
28 | 2 | if (! $associated) { |
|
29 | 2 | $recipients = array_keys($recipients); |
|
30 | 2 | } |
|
31 | |||
32 | 2 | return $recipients; |
|
33 | } |
||
34 | |||
51 |