Completed
Push — 5.x ( 546220...bd8586 )
by Lars
16:02
created
lib/dependency_maps/mime_deps.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require __DIR__ . '/../mime_types.php';
3
+require __DIR__.'/../mime_types.php';
4 4
 
5 5
 Swift_DependencyContainer::getInstance()
6 6
     ->register('properties.charset')
Please login to merge, or discard this patch.
lib/classes/Swift/Mime/Headers/OpenDKIMHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
      */
114 114
     public function toString()
115 115
     {
116
-        return $this->_fieldName . ': ' . $this->_value;
116
+        return $this->_fieldName.': '.$this->_value;
117 117
     }
118 118
 
119 119
     /**
Please login to merge, or discard this patch.
lib/classes/Swift/Mime/Headers/IdentificationHeader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             $angleAddrs = array();
157 157
 
158 158
             foreach ($this->_ids as $id) {
159
-                $angleAddrs[] = '<' . $id . '>';
159
+                $angleAddrs[] = '<'.$id.'>';
160 160
             }
161 161
 
162 162
             $this->setCachedValue(implode(' ', $angleAddrs));
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     {
177 177
         if ($this->_emailValidator->isValidSimpleWrapper($id) === false) {
178 178
             throw new Swift_RfcComplianceException(
179
-                'Invalid ID given <' . $id . '>'
179
+                'Invalid ID given <'.$id.'>'
180 180
             );
181 181
         }
182 182
     }
Please login to merge, or discard this patch.
lib/classes/Swift/Mime/Headers/MailboxHeader.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function setNameAddresses($mailboxes)
111 111
     {
112
-        $this->_mailboxes = $this->normalizeMailboxes((array)$mailboxes);
112
+        $this->_mailboxes = $this->normalizeMailboxes((array) $mailboxes);
113 113
         $this->setCachedValue(null); //Clear any cached value
114 114
     }
115 115
 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      */
195 195
     public function setAddresses($addresses)
196 196
     {
197
-        $this->setNameAddresses(array_values((array)$addresses));
197
+        $this->setNameAddresses(array_values((array) $addresses));
198 198
     }
199 199
 
200 200
     /**
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
     public function removeAddresses($addresses)
218 218
     {
219 219
         $this->setCachedValue(null);
220
-        foreach ((array)$addresses as $address) {
220
+        foreach ((array) $addresses as $address) {
221 221
             unset($this->_mailboxes[$address]);
222 222
         }
223 223
     }
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
             $mailboxStr = $email;
334 334
             if ($name) {
335 335
                 $nameStr = $this->createDisplayNameString($name, empty($strings));
336
-                $mailboxStr = $nameStr . ' <' . $mailboxStr . '>';
336
+                $mailboxStr = $nameStr.' <'.$mailboxStr.'>';
337 337
             }
338 338
             $strings[] = $mailboxStr;
339 339
         }
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
     private function _assertValidAddress($address)
352 352
     {
353 353
         if ($this->_emailValidator->isValidWrapper($address) === false) {
354
-            throw new Swift_RfcComplianceException('Address in mailbox given [' . $address . '] does not comply with RFC 2822, 3.6.2.');
354
+            throw new Swift_RfcComplianceException('Address in mailbox given ['.$address.'] does not comply with RFC 2822, 3.6.2.');
355 355
         }
356 356
     }
357 357
 }
Please login to merge, or discard this patch.
lib/classes/Swift/Mime/Headers/PathHeader.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
     {
127 127
         if (!$this->getCachedValue()) {
128 128
             if (isset($this->_address)) {
129
-                $this->setCachedValue('<' . $this->_address . '>');
129
+                $this->setCachedValue('<'.$this->_address.'>');
130 130
             }
131 131
         }
132 132
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
      * Get the model for the field body.
73 73
      * This method returns a string email address.
74 74
      *
75
-     * @return mixed
75
+     * @return string
76 76
      */
77 77
     public function getFieldBodyModel()
78 78
     {
Please login to merge, or discard this patch.
lib/classes/Swift/Mime/ContentEncoder/QpContentEncoder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
     protected function getSafeMapShareId()
39 39
     {
40
-        return get_class($this) . ($this->_dotEscape ? '.dotEscape' : '');
40
+        return get_class($this).($this->_dotEscape ? '.dotEscape' : '');
41 41
     }
42 42
 
43 43
     protected function initSafeMap()
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             $newLineLength = $lineLen + ($i === false ? $size : $i);
101 101
 
102 102
             if ($currentLine && $newLineLength >= $thisLineLength) {
103
-                $is->write($prepend . $this->_standardize($currentLine));
103
+                $is->write($prepend.$this->_standardize($currentLine));
104 104
                 $currentLine = '';
105 105
                 $prepend = "=\r\n";
106 106
                 $thisLineLength = $maxLineLength;
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         }
119 119
 
120 120
         if ($currentLine !== '') {
121
-            $is->write($prepend . $this->_standardize($currentLine));
121
+            $is->write($prepend.$this->_standardize($currentLine));
122 122
         }
123 123
     }
124 124
 
Please login to merge, or discard this patch.
lib/classes/Swift/Mime/ContentEncoder/Base64ContentEncoder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             if ($atEOF) {
47 47
                 $streamTheseBytes = $base64ReadBufferRemainderBytes;
48 48
             } else {
49
-                $streamTheseBytes = $base64ReadBufferRemainderBytes . $readBytes;
49
+                $streamTheseBytes = $base64ReadBufferRemainderBytes.$readBytes;
50 50
             }
51 51
 
52 52
             $base64ReadBufferRemainderBytes = null;
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             $thisMaxLineLength = $maxLineLength - $remainder - $firstLineOffset;
72 72
 
73 73
             while ($thisMaxLineLength < strlen($encoded)) {
74
-                $encodedTransformed .= substr($encoded, 0, $thisMaxLineLength) . "\r\n";
74
+                $encodedTransformed .= substr($encoded, 0, $thisMaxLineLength)."\r\n";
75 75
                 $firstLineOffset = 0;
76 76
                 $encoded = substr($encoded, $thisMaxLineLength);
77 77
                 $thisMaxLineLength = $maxLineLength;
Please login to merge, or discard this patch.
lib/classes/Swift/Mime/ContentEncoder/PlainContentEncoder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     {
72 72
         $leftOver = '';
73 73
         while (false !== $bytes = $os->read(8192)) {
74
-            $toencode = $leftOver . $bytes;
74
+            $toencode = $leftOver.$bytes;
75 75
 
76 76
             if ($this->_canonical) {
77 77
                 $toencode = $this->_canonicalize($toencode);
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                 if (
141 141
                     $currentLine !== ''
142 142
                     &&
143
-                    strlen($currentLine . $chunk) > $length
143
+                    strlen($currentLine.$chunk) > $length
144 144
                 ) {
145 145
                     $lines[] = '';
146 146
                     $currentLine = &$lines[$lineCount++];
Please login to merge, or discard this patch.
lib/classes/Swift/Transport/EsmtpTransport.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function setPort($port)
93 93
     {
94
-        $this->_params['port'] = (int)$port;
94
+        $this->_params['port'] = (int) $port;
95 95
 
96 96
         return $this;
97 97
     }
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
      */
116 116
     public function setTimeout($timeout)
117 117
     {
118
-        $this->_params['timeout'] = (int)$timeout;
119
-        $this->_buffer->setParam('timeout', (int)$timeout);
118
+        $this->_params['timeout'] = (int) $timeout;
119
+        $this->_buffer->setParam('timeout', (int) $timeout);
120 120
 
121 121
         return $this;
122 122
     }
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
      */
259 259
     public function executeCommand($command, $codes = array(), &$failures = null)
260 260
     {
261
-        $failures = (array)$failures;
261
+        $failures = (array) $failures;
262 262
         $stopSignal = false;
263 263
         $response = null;
264 264
 
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 
292 292
             $inArray = in_array(
293 293
                 strtolower($method),
294
-                array_map('strtolower', (array)$handler->exposeMixinMethods()),
294
+                array_map('strtolower', (array) $handler->exposeMixinMethods()),
295 295
                 true
296 296
             );
297 297
 
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
                 }
311 311
             }
312 312
         }
313
-        trigger_error('Call to undefined method ' . $method, E_USER_ERROR);
313
+        trigger_error('Call to undefined method '.$method, E_USER_ERROR);
314 314
     }
315 315
 
316 316
     /** Get the params to initialize the buffer */
@@ -376,10 +376,10 @@  discard block
 block discarded – undo
376 376
 
377 377
         $params = array();
378 378
         foreach ($handlers as $handler) {
379
-            $params = array_merge($params, (array)$handler->getMailParams());
379
+            $params = array_merge($params, (array) $handler->getMailParams());
380 380
         }
381 381
 
382
-        $paramStr = !empty($params) ? ' ' . implode(' ', $params) : '';
382
+        $paramStr = !empty($params) ? ' '.implode(' ', $params) : '';
383 383
         $this->executeCommand(
384 384
             sprintf("MAIL FROM:<%s>%s\r\n", $address, $paramStr), array(250)
385 385
         );
@@ -396,10 +396,10 @@  discard block
 block discarded – undo
396 396
 
397 397
         $params = array();
398 398
         foreach ($handlers as $handler) {
399
-            $params = array_merge($params, (array)$handler->getRcptParams());
399
+            $params = array_merge($params, (array) $handler->getRcptParams());
400 400
         }
401 401
 
402
-        $paramStr = !empty($params) ? ' ' . implode(' ', $params) : '';
402
+        $paramStr = !empty($params) ? ' '.implode(' ', $params) : '';
403 403
         $this->executeCommand(
404 404
             sprintf("RCPT TO:<%s>%s\r\n", $address, $paramStr), array(250, 251, 252)
405 405
         );
Please login to merge, or discard this patch.