Completed
Pull Request — 5.x (#21)
by Lars
11:50
created
lib/classes/Swift/Signers/SMimeSigner.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -95,14 +95,14 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function setSignCertificate($certificate, $privateKey = null, $signOptions = PKCS7_DETACHED, $extraCerts = null)
97 97
     {
98
-        $this->signCertificate = 'file://' . str_replace('\\', '/', realpath($certificate));
98
+        $this->signCertificate = 'file://'.str_replace('\\', '/', realpath($certificate));
99 99
 
100 100
         if (null !== $privateKey) {
101 101
             if (is_array($privateKey)) {
102 102
                 $this->signPrivateKey = $privateKey;
103
-                $this->signPrivateKey[0] = 'file://' . str_replace('\\', '/', realpath($privateKey[0]));
103
+                $this->signPrivateKey[0] = 'file://'.str_replace('\\', '/', realpath($privateKey[0]));
104 104
             } else {
105
-                $this->signPrivateKey = 'file://' . str_replace('\\', '/', realpath($privateKey));
105
+                $this->signPrivateKey = 'file://'.str_replace('\\', '/', realpath($privateKey));
106 106
             }
107 107
         }
108 108
 
@@ -131,10 +131,10 @@  discard block
 block discarded – undo
131 131
             $this->encryptCert = array();
132 132
 
133 133
             foreach ($recipientCerts as $cert) {
134
-                $this->encryptCert[] = 'file://' . str_replace('\\', '/', realpath($cert));
134
+                $this->encryptCert[] = 'file://'.str_replace('\\', '/', realpath($cert));
135 135
             }
136 136
         } else {
137
-            $this->encryptCert = 'file://' . str_replace('\\', '/', realpath($recipientCerts));
137
+            $this->encryptCert = 'file://'.str_replace('\\', '/', realpath($recipientCerts));
138 138
         }
139 139
 
140 140
         if (null !== $cipher) {
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
         foreach ($headerLines as $headerLine) {
381 381
             // Line separated
382 382
             if (ctype_space($headerLines[0]) || false === strpos($headerLine, ':')) {
383
-                $headers[$currentHeaderName] .= ' ' . trim($headerLine);
383
+                $headers[$currentHeaderName] .= ' '.trim($headerLine);
384 384
                 continue;
385 385
             }
386 386
 
Please login to merge, or discard this patch.
lib/classes/Swift/Signers/OpenDKIMSigner.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         $header = new Swift_Mime_Headers_OpenDKIMHeader('DKIM-Signature');
80 80
         $headerVal = $this->_dkimHandler->getSignatureHeader();
81 81
         if (!$headerVal) {
82
-            throw new Swift_SwiftException('OpenDKIM Error: ' . $this->_dkimHandler->getError());
82
+            throw new Swift_SwiftException('OpenDKIM Error: '.$this->_dkimHandler->getError());
83 83
         }
84 84
         $header->setValue($headerVal);
85 85
         $headers->set($header);
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             OpenDKIM::setOption(OpenDKIM::OPTS_FIXEDTIME, time());
113 113
         } else {
114 114
             if (!OpenDKIM::setOption(OpenDKIM::OPTS_FIXEDTIME, $this->_signatureTimestamp)) {
115
-                throw new Swift_SwiftException('Unable to force signature timestamp [' . openssl_error_string() . ']');
115
+                throw new Swift_SwiftException('Unable to force signature timestamp ['.openssl_error_string().']');
116 116
             }
117 117
         }
118 118
 
Please login to merge, or discard this patch.
lib/classes/Swift/Plugins/LoggerPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
         $code = $e->getCode();
135 135
         $this->_logger->add(sprintf('!! %s (code: %s)', $message, $code));
136 136
         $message .= PHP_EOL;
137
-        $message .= 'Log data:' . PHP_EOL;
137
+        $message .= 'Log data:'.PHP_EOL;
138 138
         $message .= $this->_logger->dump();
139 139
         $evt->cancelBubble();
140 140
         throw new Swift_TransportException($message, $code, $e->getPrevious());
Please login to merge, or discard this patch.
lib/classes/Swift/Plugins/Reporters/HtmlReporter.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,14 +25,14 @@
 block discarded – undo
25 25
     public function notify(Swift_Mime_Message $message, $address, $result)
26 26
     {
27 27
         if (self::RESULT_PASS === $result) {
28
-            echo '<div style="color: #fff; background: #006600; padding: 2px; margin: 2px;">' . PHP_EOL;
29
-            echo 'PASS ' . $address . PHP_EOL;
30
-            echo '</div>' . PHP_EOL;
28
+            echo '<div style="color: #fff; background: #006600; padding: 2px; margin: 2px;">'.PHP_EOL;
29
+            echo 'PASS '.$address.PHP_EOL;
30
+            echo '</div>'.PHP_EOL;
31 31
             flush();
32 32
         } else {
33
-            echo '<div style="color: #fff; background: #880000; padding: 2px; margin: 2px;">' . PHP_EOL;
34
-            echo 'FAIL ' . $address . PHP_EOL;
35
-            echo '</div>' . PHP_EOL;
33
+            echo '<div style="color: #fff; background: #880000; padding: 2px; margin: 2px;">'.PHP_EOL;
34
+            echo 'FAIL '.$address.PHP_EOL;
35
+            echo '</div>'.PHP_EOL;
36 36
             flush();
37 37
         }
38 38
     }
Please login to merge, or discard this patch.
lib/classes/Swift/Plugins/PopBeforeSmtpPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -260,11 +260,11 @@
 block discarded – undo
260 260
         $host = $this->_host;
261 261
         switch (strtolower($this->_crypto)) {
262 262
             case 'ssl':
263
-                $host = 'ssl://' . $host;
263
+                $host = 'ssl://'.$host;
264 264
                 break;
265 265
 
266 266
             case 'tls':
267
-                $host = 'tls://' . $host;
267
+                $host = 'tls://'.$host;
268 268
                 break;
269 269
         }
270 270
 
Please login to merge, or discard this patch.
lib/classes/Swift/Encoder/Rfc2231Encoder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             if (
64 64
                 $currentLine !== ''
65 65
                 &&
66
-                strlen($currentLine . $encodedChar) > $thisLineLength
66
+                strlen($currentLine.$encodedChar) > $thisLineLength
67 67
             ) {
68 68
                 $lines[] = '';
69 69
                 $currentLine = &$lines[$lineCount++];
Please login to merge, or discard this patch.
lib/classes/Swift/Encoder/Base64Encoder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@
 block discarded – undo
39 39
         $firstLine = '';
40 40
 
41 41
         if (0 != $firstLineOffset) {
42
-            $firstLine = substr($encodedString, 0, $maxLineLength - $firstLineOffset) . "\r\n";
42
+            $firstLine = substr($encodedString, 0, $maxLineLength - $firstLineOffset)."\r\n";
43 43
             $encodedString = substr($encodedString, $maxLineLength - $firstLineOffset);
44 44
         }
45 45
 
46
-        return $firstLine . trim(chunk_split($encodedString, $maxLineLength, "\r\n"));
46
+        return $firstLine.trim(chunk_split($encodedString, $maxLineLength, "\r\n"));
47 47
     }
48 48
 
49 49
     /**
Please login to merge, or discard this patch.
lib/classes/Swift/CharacterStream/NgCharacterStream.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@
 block discarded – undo
198 198
                 $to = $start;
199 199
                 for (; $this->_currentPos < $end; ++$this->_currentPos) {
200 200
                     if (isset($this->_map['i'][$this->_currentPos])) {
201
-                        $ret .= substr($this->_datas, $start, $to - $start) . '?';
201
+                        $ret .= substr($this->_datas, $start, $to - $start).'?';
202 202
                         $start = $this->_map['p'][$this->_currentPos];
203 203
                     } else {
204 204
                         $to = $this->_map['p'][$this->_currentPos];
Please login to merge, or discard this patch.
lib/classes/Swift/CharacterReaderFactory/SimpleCharacterReaderFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,23 +51,23 @@  discard block
 block discarded – undo
51 51
         $prefix = 'Swift_CharacterReader_';
52 52
 
53 53
         $singleByte = array(
54
-            'class' => $prefix . 'GenericFixedWidthReader',
54
+            'class' => $prefix.'GenericFixedWidthReader',
55 55
             'constructor' => array(1),
56 56
             );
57 57
 
58 58
         $doubleByte = array(
59
-            'class' => $prefix . 'GenericFixedWidthReader',
59
+            'class' => $prefix.'GenericFixedWidthReader',
60 60
             'constructor' => array(2),
61 61
             );
62 62
 
63 63
         $fourBytes = array(
64
-            'class' => $prefix . 'GenericFixedWidthReader',
64
+            'class' => $prefix.'GenericFixedWidthReader',
65 65
             'constructor' => array(4),
66 66
             );
67 67
 
68 68
         // Utf-8
69 69
         self::$_map['utf-?8'] = array(
70
-            'class' => $prefix . 'Utf8Reader',
70
+            'class' => $prefix.'Utf8Reader',
71 71
             'constructor' => array(),
72 72
             );
73 73
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     {
106 106
         $charset = trim(strtolower($charset));
107 107
         foreach (self::$_map as $pattern => $spec) {
108
-            $re = '/^' . $pattern . '$/D';
108
+            $re = '/^'.$pattern.'$/D';
109 109
             if (preg_match($re, $charset)) {
110 110
                 if (!array_key_exists($pattern, self::$_loaded)) {
111 111
                     $reflector = new ReflectionClass($spec['class']);
Please login to merge, or discard this patch.