@@ -57,8 +57,7 @@ discard block |
||
57 | 57 | * Class SMTP |
58 | 58 | * @package Platine\Mail\Transport |
59 | 59 | */ |
60 | -class SMTP implements TransportInterface |
|
61 | -{ |
|
60 | +class SMTP implements TransportInterface { |
|
62 | 61 | |
63 | 62 | /** |
64 | 63 | * End of line char |
@@ -130,8 +129,7 @@ discard block |
||
130 | 129 | * @param string $host |
131 | 130 | * @param int $port |
132 | 131 | */ |
133 | - public function __construct(string $host, int $port = 25) |
|
134 | - { |
|
132 | + public function __construct(string $host, int $port = 25) { |
|
135 | 133 | $this->host = $host; |
136 | 134 | $this->port = $port; |
137 | 135 | } |
@@ -55,8 +55,7 @@ discard block |
||
55 | 55 | * Class File |
56 | 56 | * @package Platine\Mail\Transport |
57 | 57 | */ |
58 | -class File implements TransportInterface |
|
59 | -{ |
|
58 | +class File implements TransportInterface { |
|
60 | 59 | |
61 | 60 | /** |
62 | 61 | * |
@@ -68,8 +67,7 @@ discard block |
||
68 | 67 | * Create new instance |
69 | 68 | * @param string $path |
70 | 69 | */ |
71 | - public function __construct(string $path) |
|
72 | - { |
|
70 | + public function __construct(string $path) { |
|
73 | 71 | $this->path = rtrim($path, '/\\') . DIRECTORY_SEPARATOR; |
74 | 72 | } |
75 | 73 |
@@ -55,8 +55,7 @@ discard block |
||
55 | 55 | * Class Sendmail |
56 | 56 | * @package Platine\Mail\Transport |
57 | 57 | */ |
58 | -class Sendmail implements TransportInterface |
|
59 | -{ |
|
58 | +class Sendmail implements TransportInterface { |
|
60 | 59 | |
61 | 60 | /** |
62 | 61 | * |
@@ -68,8 +67,7 @@ discard block |
||
68 | 67 | * Create new instance |
69 | 68 | * @param string $path |
70 | 69 | */ |
71 | - public function __construct(string $path = '/usr/sbin/sendmail') |
|
72 | - { |
|
70 | + public function __construct(string $path = '/usr/sbin/sendmail') { |
|
73 | 71 | $this->path = $path; |
74 | 72 | } |
75 | 73 |
@@ -54,8 +54,7 @@ discard block |
||
54 | 54 | * Class Message |
55 | 55 | * @package Platine\Mail |
56 | 56 | */ |
57 | -class Message implements MessageInterface |
|
58 | -{ |
|
57 | +class Message implements MessageInterface { |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * |
@@ -132,8 +131,7 @@ discard block |
||
132 | 131 | /** |
133 | 132 | * Create new instance |
134 | 133 | */ |
135 | - public function __construct() |
|
136 | - { |
|
134 | + public function __construct() { |
|
137 | 135 | $this->reset(); |
138 | 136 | } |
139 | 137 | |
@@ -357,8 +355,7 @@ discard block |
||
357 | 355 | /** |
358 | 356 | * {@inheritedoc} |
359 | 357 | */ |
360 | - public function getHeader(string $name, $default = null) |
|
361 | - { |
|
358 | + public function getHeader(string $name, $default = null) { |
|
362 | 359 | $this->prepareHeaders(); |
363 | 360 | |
364 | 361 | return array_key_exists($name, $this->headers) |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * Class MessageInterface |
54 | 54 | * @package Platine\Mail |
55 | 55 | */ |
56 | -interface MessageInterface |
|
57 | -{ |
|
56 | +interface MessageInterface { |
|
58 | 57 | |
59 | 58 | /** |
60 | 59 | * Set sender |