@@ -40,6 +40,5 @@ |
||
40 | 40 | * Class MailException |
41 | 41 | * @package Platine\Mail\Exception |
42 | 42 | */ |
43 | -class MailException extends Exception |
|
44 | -{ |
|
43 | +class MailException extends Exception { |
|
45 | 44 | } |
@@ -40,6 +40,5 @@ |
||
40 | 40 | * Class FileTransportException |
41 | 41 | * @package Platine\Mail\Exception |
42 | 42 | */ |
43 | -class FileTransportException extends Exception |
|
44 | -{ |
|
43 | +class FileTransportException extends Exception { |
|
45 | 44 | } |
@@ -38,16 +38,14 @@ |
||
38 | 38 | * Class SMTPRetunCodeException |
39 | 39 | * @package Platine\Mail\Exception |
40 | 40 | */ |
41 | -class SMTPRetunCodeException extends SMTPException |
|
42 | -{ |
|
41 | +class SMTPRetunCodeException extends SMTPException { |
|
43 | 42 | /** |
44 | 43 | * Create new instance |
45 | 44 | * @param int $expected |
46 | 45 | * @param int $received |
47 | 46 | * @param string|null $serverMessage |
48 | 47 | */ |
49 | - public function __construct(int $expected, int $received, ?string $serverMessage = null) |
|
50 | - { |
|
48 | + public function __construct(int $expected, int $received, ?string $serverMessage = null) { |
|
51 | 49 | $message = sprintf( |
52 | 50 | 'Unexpected return code expected %d, but got %d', |
53 | 51 | $expected, |
@@ -38,6 +38,5 @@ |
||
38 | 38 | * Class SMTPException |
39 | 39 | * @package Platine\Mail\Exception |
40 | 40 | */ |
41 | -class SMTPSecureException extends SMTPException |
|
42 | -{ |
|
41 | +class SMTPSecureException extends SMTPException { |
|
43 | 42 | } |
@@ -40,6 +40,5 @@ |
||
40 | 40 | * Class SMTPException |
41 | 41 | * @package Platine\Mail\Exception |
42 | 42 | */ |
43 | -class SMTPException extends Exception |
|
44 | -{ |
|
43 | +class SMTPException extends Exception { |
|
45 | 44 | } |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * Class NullTransport |
55 | 55 | * @package Platine\Mail\Transport |
56 | 56 | */ |
57 | -class NullTransport implements TransportInterface |
|
58 | -{ |
|
57 | +class NullTransport implements TransportInterface { |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * {@inheritedoc} |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * Class Mail |
55 | 55 | * @package Platine\Mail\Transport |
56 | 56 | */ |
57 | -class Mail implements TransportInterface |
|
58 | -{ |
|
57 | +class Mail implements TransportInterface { |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * {@inheritedoc} |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * Class TransportInterface |
55 | 55 | * @package Platine\Mail\Transport |
56 | 56 | */ |
57 | -interface TransportInterface |
|
58 | -{ |
|
57 | +interface TransportInterface { |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * Send the message |
@@ -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 | } |