@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | class ChainMail |
| 28 | 28 | { |
| 29 | 29 | |
| 30 | - const DEFAULT_CONFIG = __DIR__ . '/../config/defaults.php'; |
|
| 30 | + const DEFAULT_CONFIG = __DIR__.'/../config/defaults.php'; |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Configuration Settings. |
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | $this->config = new Config(array_merge( |
| 60 | - (array)$defaults, |
|
| 61 | - (array)$config) |
|
| 60 | + (array) $defaults, |
|
| 61 | + (array) $config) |
|
| 62 | 62 | ); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * specific view to be rendered. |
| 23 | 23 | */ |
| 24 | 24 | 'view_root_locations' => [ |
| 25 | - 'default' => realpath(__DIR__ . '/../views'), |
|
| 25 | + 'default' => realpath(__DIR__.'/../views'), |
|
| 26 | 26 | ], |
| 27 | 27 | |
| 28 | 28 | /* |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | if ( ! $template instanceof Template) { |
| 156 | 156 | throw new InvalidTemplate( |
| 157 | 157 | 'Could not set the template, invalid type.', |
| 158 | - (array)$template |
|
| 158 | + (array) $template |
|
| 159 | 159 | ); |
| 160 | 160 | } |
| 161 | 161 | $this->template = $template; |
@@ -155,6 +155,6 @@ |
||
| 155 | 155 | protected function getViewName(array $context) |
| 156 | 156 | { |
| 157 | 157 | return $this->config['templates'][$this->getTemplateName()]['view_name'] |
| 158 | - . '.' . $context['format']; |
|
| 158 | + . '.'.$context['format']; |
|
| 159 | 159 | } |
| 160 | 160 | } |
@@ -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 | } |
@@ -155,6 +155,6 @@ |
||
| 155 | 155 | protected function getViewName(array $context) |
| 156 | 156 | { |
| 157 | 157 | return $this->config['templates'][$this->getTemplateName()]['view_name'] |
| 158 | - . '.' . $context['format']; |
|
| 158 | + . '.'.$context['format']; |
|
| 159 | 159 | } |
| 160 | 160 | } |
@@ -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 | /** |
@@ -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 | /** |