Passed
Push — develop ( c34963...58e492 )
by nguereza
02:34
created
src/Transport/SMTP.php 1 patch
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.
src/Transport/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
             ));
87 87
         }
88 88
 
89
-        $content = (string)$message;
89
+        $content = (string) $message;
90 90
         $file = $this->path . date('YmdHis') . '-' . md5(uniqid()) . '.txt';
91 91
         if (!file_put_contents($file, $content)) {
92 92
             throw new FileTransportException(sprintf(
Please login to merge, or discard this patch.
src/Transport/Sendmail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
      */
79 79
     public function send(MessageInterface $message): bool
80 80
     {
81
-        $content = (string)$message;
81
+        $content = (string) $message;
82 82
 
83 83
         $from = $message->getFrom();
84 84
 
Please login to merge, or discard this patch.
src/Message.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -99,16 +99,16 @@  discard block
 block discarded – undo
99 99
      */
100 100
     protected string $body = '';
101 101
 
102
-     /**
103
-     * The mail attachments
104
-     * @var array<int, array<string, string>>
105
-     */
102
+        /**
103
+         * The mail attachments
104
+         * @var array<int, array<string, string>>
105
+         */
106 106
     protected array $attachments = [];
107 107
 
108
-     /**
109
-     * The mail headers
110
-     * @var array<string, mixed>
111
-     */
108
+        /**
109
+         * The mail headers
110
+         * @var array<string, mixed>
111
+         */
112 112
     protected array $headers = [];
113 113
 
114 114
     /**
@@ -281,8 +281,8 @@  discard block
 block discarded – undo
281 281
     }
282 282
 
283 283
     /**
284
-    *  {@inheritedoc}
285
-    */
284
+     *  {@inheritedoc}
285
+     */
286 286
     public function setReplyTo(string $email, ?string $name = null): self
287 287
     {
288 288
         $this->replyTo = $this->formatHeader($email, $name);
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
     protected function filterEmail(string $email): string
569 569
     {
570 570
         $rules = [
571
-           "\r" => '',
571
+            "\r" => '',
572 572
             "\n" => '',
573 573
             "\t" => '',
574 574
             '"'  => '',
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
     protected function filterName(string $name): string
592 592
     {
593 593
         $rules = [
594
-           "\r" => '',
594
+            "\r" => '',
595 595
             "\n" => '',
596 596
             "\t" => '',
597 597
             '"'  => "'",
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         $this->body = '';
152 152
         $this->attachments = [];
153 153
         $this->headers = [];
154
-        $this->uid = md5(uniqid((string)time()));
154
+        $this->uid = md5(uniqid((string) time()));
155 155
         $this->wrap = 78;
156 156
         $this->priority = 3;
157 157
 
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
      */
635 635
     protected function encodeUtf8(?string $value): string
636 636
     {
637
-        $value = trim((string)$value);
637
+        $value = trim((string) $value);
638 638
         if (preg_match('/(\s)/', $value)) {
639 639
             return $this->encodeUtf8Words($value);
640 640
         }
Please login to merge, or discard this patch.