@@ -34,7 +34,7 @@ |
||
| 34 | 34 | /** |
| 35 | 35 | * Instantiate a Domain object. |
| 36 | 36 | * |
| 37 | - * @param Domain|string $domain |
|
| 37 | + * @param string $domain |
|
| 38 | 38 | * |
| 39 | 39 | * @throws InvalidDomain If the domain is not valid. |
| 40 | 40 | */ |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | throw InvalidDomain::from($domain); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - $this->domain = (string)$domain; |
|
| 47 | + $this->domain = (string) $domain; |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | public function __construct(array $emails) |
| 29 | 29 | { |
| 30 | 30 | parent::__construct(array_filter( |
| 31 | - array_map(function ($value) { |
|
| 31 | + array_map(function($value) { |
|
| 32 | 32 | if ($value instanceof EmailAddress) { |
| 33 | 33 | return $value; |
| 34 | 34 | } |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | */ |
| 89 | 89 | public function getAddress() |
| 90 | 90 | { |
| 91 | - return $this->getLocalPart() . '@' . $this->getDomainPart(); |
|
| 91 | + return $this->getLocalPart().'@'.$this->getDomainPart(); |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |