Completed
Branch master (518691)
by Lars
02:52
created
lib/classes/Swift/Transport/MailTransport.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
         $messageStr = $message->toString();
148 148
 
149 149
         if ($toHeader) {
150
-          $message->getHeaders()->set($toHeader);
150
+            $message->getHeaders()->set($toHeader);
151 151
         }
152 152
         $message->getHeaders()->set($subjectHeader);
153 153
 
Please login to merge, or discard this patch.
lib/classes/Swift/Encoder/QpEncoder.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@
 block discarded – undo
260 260
             }
261 261
 
262 262
             if ($tmpRet !== '=00') {
263
-              $ret .= $tmpRet;
263
+                $ret .= $tmpRet;
264 264
             }
265 265
         }
266 266
 
Please login to merge, or discard this patch.
lib/classes/Swift/Transport/EsmtpTransport.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -248,10 +248,10 @@  discard block
 block discarded – undo
248 248
         /** @noinspection PhpUsageOfSilenceOperatorInspection */
249 249
         /** @noinspection UsageOfSilenceOperatorInspection */
250 250
         @uasort($assoc, array($this, '_sortHandlers'));
251
-          $this->_handlers = $assoc;
252
-          $this->_setHandlerParams();
251
+            $this->_handlers = $assoc;
252
+            $this->_setHandlerParams();
253 253
 
254
-          return $this;
254
+            return $this;
255 255
     }
256 256
 
257 257
     /**
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
                     return $this;
326 326
                 }
327 327
 
328
-              return $return;
328
+                return $return;
329 329
             }
330 330
         }
331 331
 
Please login to merge, or discard this patch.
lib/classes/Swift/FileSpool.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $this->_path = $path;
39 39
 
40
-      /** @noinspection PhpUsageOfSilenceOperatorInspection */
41
-      if (
40
+        /** @noinspection PhpUsageOfSilenceOperatorInspection */
41
+        if (
42 42
             !file_exists($this->_path)
43 43
             &&
44 44
             !@mkdir($this->_path, 0777, true)
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                         return false;
108 108
                     }
109 109
                     return fclose($fp);
110
-              }
110
+                }
111 111
 
112 112
             /* The file already exists, we try a longer fileName */
113 113
             $fileName .= $this->getRandomString(1);
Please login to merge, or discard this patch.
lib/classes/Swift.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,8 @@
 block discarded – undo
101 101
             return $staticStrtolowerCache[$string];
102 102
         }
103 103
 
104
-      $staticStrtolowerCache[$string] = strtolower($string);
104
+        $staticStrtolowerCache[$string] = strtolower($string);
105 105
 
106
-      return $staticStrtolowerCache[$string];
106
+        return $staticStrtolowerCache[$string];
107 107
     }
108 108
 }
Please login to merge, or discard this patch.
lib/classes/Swift/Transport/StreamBuffer.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -186,8 +186,8 @@
 block discarded – undo
186 186
             ||
187 187
             feof($this->_out)
188 188
         ) {
189
-          // TODO?
190
-          return;
189
+            // TODO?
190
+            return;
191 191
         }
192 192
 
193 193
         $line = fgets($this->_out);
Please login to merge, or discard this patch.
lib/classes/Swift/KeyCache/DiskKeyCache.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -178,14 +178,14 @@
 block discarded – undo
178 178
     {
179 179
         $this->_prepareCache($nsKey);
180 180
         if ($this->hasKey($nsKey, $itemKey)) {
181
-          $fp = $this->_getHandle($nsKey, $itemKey, self::POSITION_START);
182
-          $str = '';
183
-          while (!feof($fp) && false !== $bytes = fread($fp, 8192)) {
181
+            $fp = $this->_getHandle($nsKey, $itemKey, self::POSITION_START);
182
+            $str = '';
183
+            while (!feof($fp) && false !== $bytes = fread($fp, 8192)) {
184 184
             $str .= $bytes;
185
-          }
186
-          $this->_freeHandle($nsKey, $itemKey);
185
+            }
186
+            $this->_freeHandle($nsKey, $itemKey);
187 187
 
188
-          return $str;
188
+            return $str;
189 189
         }
190 190
 
191 191
         return '';
Please login to merge, or discard this patch.
lib/classes/Swift/Signers/DKIMSigner.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
             return array('DKIM-Signature', 'X-DebugHash');
511 511
         }
512 512
 
513
-      return array('DKIM-Signature');
513
+        return array('DKIM-Signature');
514 514
     }
515 515
 
516 516
     /**
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
 
592 592
         if ($this->_signatureTimestamp === true) {
593 593
 
594
-          $params['t'] = time();
594
+            $params['t'] = time();
595 595
             if ($this->_signatureExpiration !== false) {
596 596
                 $params['x'] = $params['t'] + $this->_signatureExpiration;
597 597
             }
@@ -739,8 +739,8 @@  discard block
 block discarded – undo
739 739
     {
740 740
         $len = \strlen($string);
741 741
         if ($len > ($new_len = ($this->_maxLen - $this->_bodyLen))) {
742
-          /** @noinspection CallableParameterUseCaseInTypeContextInspection */
743
-          $string = \substr($string, 0, $new_len);
742
+            /** @noinspection CallableParameterUseCaseInTypeContextInspection */
743
+            $string = \substr($string, 0, $new_len);
744 744
             $len = $new_len;
745 745
         }
746 746
         hash_update($this->_bodyHashHandler, $string);
@@ -779,9 +779,9 @@  discard block
 block discarded – undo
779 779
         }
780 780
 
781 781
         if ($this->_passphrase) {
782
-          $pkeyId = openssl_get_privatekey($this->_privateKey, $this->_passphrase);
782
+            $pkeyId = openssl_get_privatekey($this->_privateKey, $this->_passphrase);
783 783
         } else {
784
-          $pkeyId = openssl_get_privatekey($this->_privateKey);
784
+            $pkeyId = openssl_get_privatekey($this->_privateKey);
785 785
         }
786 786
         if (!$pkeyId) {
787 787
             throw new Swift_SwiftException('Unable to load DKIM Private Key [' . openssl_error_string() . ']');
Please login to merge, or discard this patch.
lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
     protected function createMessage1()
226 226
     {
227 227
         return self::NTLMSIG
228
-               . $this->createByte('01') // Message 1
229
-               . $this->createByte('0702'); // Flags
228
+                . $this->createByte('01') // Message 1
229
+                . $this->createByte('0702'); // Flags
230 230
     }
231 231
 
232 232
     /**
@@ -254,19 +254,19 @@  discard block
 block discarded – undo
254 254
         $ntlmSec = $this->createSecurityBuffer($ntlmResponse, ($lmInfo[0] + $lmInfo[1]) / 2, true);
255 255
 
256 256
         return self::NTLMSIG
257
-               . $this->createByte('03') // TYPE 3 message
258
-               . $lmSec // LM response header
259
-               . $ntlmSec // NTLM response header
260
-               . $domainSec // Domain header
261
-               . $userSec // User header
262
-               . $workSec // Workstation header
263
-               . $this->createByte('000000009a', 8) // session key header (empty)
264
-               . $this->createByte('01020000') // FLAGS
265
-               . $this->convertTo16bit($domain) // domain name
266
-               . $this->convertTo16bit($username) // username
267
-               . $this->convertTo16bit($workstation) // workstation
268
-               . $lmResponse
269
-               . $ntlmResponse;
257
+                . $this->createByte('03') // TYPE 3 message
258
+                . $lmSec // LM response header
259
+                . $ntlmSec // NTLM response header
260
+                . $domainSec // Domain header
261
+                . $userSec // User header
262
+                . $workSec // Workstation header
263
+                . $this->createByte('000000009a', 8) // session key header (empty)
264
+                . $this->createByte('01020000') // FLAGS
265
+                . $this->convertTo16bit($domain) // domain name
266
+                . $this->convertTo16bit($username) // username
267
+                . $this->convertTo16bit($workstation) // workstation
268
+                . $lmResponse
269
+                . $ntlmResponse;
270 270
     }
271 271
 
272 272
     /**
@@ -279,12 +279,12 @@  discard block
 block discarded – undo
279 279
     protected function createBlob($timestamp, $client, $targetInfo)
280 280
     {
281 281
         return $this->createByte('0101')
282
-               . $this->createByte('00')
283
-               . $timestamp
284
-               . $client
285
-               . $this->createByte('00')
286
-               . $targetInfo
287
-               . $this->createByte('00');
282
+                . $this->createByte('00')
283
+                . $timestamp
284
+                . $client
285
+                . $this->createByte('00')
286
+                . $targetInfo
287
+                . $this->createByte('00');
288 288
     }
289 289
 
290 290
     /**
@@ -453,16 +453,16 @@  discard block
 block discarded – undo
453 453
         foreach ($material as $k => $v) {
454 454
             $b = $this->castToByte(hexdec($v));
455 455
             $needsParity = (
456
-                               (
457
-                                   $this->uRShift($b, 7)
458
-                                   ^ $this->uRShift($b, 6)
459
-                                   ^ $this->uRShift($b, 5)
460
-                                   ^ $this->uRShift($b, 4)
461
-                                   ^ $this->uRShift($b, 3)
462
-                                   ^ $this->uRShift($b, 2)
463
-                                   ^ $this->uRShift($b, 1)
464
-                               ) & 0x01
465
-                           ) == 0;
456
+                                (
457
+                                    $this->uRShift($b, 7)
458
+                                    ^ $this->uRShift($b, 6)
459
+                                    ^ $this->uRShift($b, 5)
460
+                                    ^ $this->uRShift($b, 4)
461
+                                    ^ $this->uRShift($b, 3)
462
+                                    ^ $this->uRShift($b, 2)
463
+                                    ^ $this->uRShift($b, 1)
464
+                                ) & 0x01
465
+                            ) == 0;
466 466
 
467 467
             list($high, $low) = \str_split($v);
468 468
 
Please login to merge, or discard this patch.