Passed
Push — develop ( d77f85...75a5af )
by nguereza
02:25
created
src/Exception/MailException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,6 +40,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Exception/FileTransportException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,6 +40,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Exception/SMTPRetunCodeException.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,16 +38,14 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Exception/SMTPSecureException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,6 +38,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Exception/SMTPException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,6 +40,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Transport/NullTransport.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
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}
Please login to merge, or discard this patch.
src/Transport/Mail.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
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}
Please login to merge, or discard this patch.
src/Transport/TransportInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Transport/SMTP.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -182,18 +182,18 @@  discard block
 block discarded – undo
182 182
         $this->message = $message;
183 183
 
184 184
         $this->connect()
185
-              ->ehlo();
185
+                ->ehlo();
186 186
 
187 187
         if ($this->tls) {
188 188
             $this->starttls()
189
-                  ->ehlo();
189
+                    ->ehlo();
190 190
         }
191 191
 
192 192
         $this->authLogin()
193
-              ->mailFrom()
194
-              ->rcptTo()
195
-              ->data()
196
-              ->quit();
193
+                ->mailFrom()
194
+                ->rcptTo()
195
+                ->data()
196
+                ->quit();
197 197
 
198 198
         if (is_resource($this->smtp)) {
199 199
             return fclose($this->smtp);
@@ -221,11 +221,11 @@  discard block
 block discarded – undo
221 221
     }
222 222
 
223 223
         /**
224
-     * Connect to server
225
-     * @return $this
226
-     * @throws SMTPException
227
-     * @throws SMTPRetunCodeException
228
-     */
224
+         * Connect to server
225
+         * @return $this
226
+         * @throws SMTPException
227
+         * @throws SMTPRetunCodeException
228
+         */
229 229
     protected function connect(): self
230 230
     {
231 231
         $host = $this->ssl ? 'ssl://' . $this->host : $this->host;
@@ -257,14 +257,14 @@  discard block
 block discarded – undo
257 257
         }
258 258
 
259 259
         /**
260
-        * STREAM_CRYPTO_METHOD_TLS_CLIENT is quite the mess ...
261
-        *
262
-        * - On PHP <5.6 it doesn't even mean TLS, but SSL 2.0, and there's no option to use actual TLS
263
-        * - On PHP 5.6.0-5.6.6, >=7.2 it means negotiation with any of TLS 1.0, 1.1, 1.2
264
-        * - On PHP 5.6.7-7.1.* it means only TLS 1.0
265
-        *
266
-        * We want the negotiation, so we'll force it below ...
267
-        */
260
+         * STREAM_CRYPTO_METHOD_TLS_CLIENT is quite the mess ...
261
+         *
262
+         * - On PHP <5.6 it doesn't even mean TLS, but SSL 2.0, and there's no option to use actual TLS
263
+         * - On PHP 5.6.0-5.6.6, >=7.2 it means negotiation with any of TLS 1.0, 1.1, 1.2
264
+         * - On PHP 5.6.7-7.1.* it means only TLS 1.0
265
+         *
266
+         * We want the negotiation, so we'll force it below ...
267
+         */
268 268
         if (is_resource($this->smtp)) {
269 269
             if (
270 270
                 !stream_socket_enable_crypto(
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.