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