| @@ 107-114 (lines=8) @@ | ||
| 104 | return implode( |
|
| 105 | ", ", |
|
| 106 | array_map( |
|
| 107 | function (Address $address) { |
|
| 108 | $name = $address->getName(); |
|
| 109 | $email = $address->getEmail(); |
|
| 110 | ||
| 111 | return $name |
|
| 112 | ? "{$name} <{$email}>" |
|
| 113 | : "<{$email}>"; |
|
| 114 | }, |
|
| 115 | $addresses |
|
| 116 | ) |
|
| 117 | ); |
|
| @@ 228-235 (lines=8) @@ | ||
| 225 | implode( |
|
| 226 | ", ", |
|
| 227 | array_map( |
|
| 228 | function (Address $address) { |
|
| 229 | $email = $address->getEmail(); |
|
| 230 | $name = $address->getName(); |
|
| 231 | ||
| 232 | return empty($name) |
|
| 233 | ||
| 234 | : $this->escapeHeaderValue($name) . " <{$email}>"; |
|
| 235 | }, |
|
| 236 | $addresses |
|
| 237 | ) |
|
| 238 | ) |
|