Completed
Branch master (518691)
by Lars
02:52
created
lib/classes/Swift.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             return;
47 47
         }
48 48
 
49
-        $path = __DIR__ . '/' . str_replace('_', '/', $class) . '.php';
49
+        $path = __DIR__.'/'.str_replace('_', '/', $class).'.php';
50 50
 
51 51
         if (!file_exists($path)) {
52 52
             return;
Please login to merge, or discard this patch.
lib/classes/Swift/StreamFilters/StringReplacementFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
             return false;
48 48
         }
49 49
 
50
-        foreach ((array)$this->_search as $needle) {
50
+        foreach ((array) $this->_search as $needle) {
51 51
             if (
52 52
                 $needle
53 53
                 &&
Please login to merge, or discard this patch.
lib/classes/Swift/Mime/Attachment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,6 +167,6 @@
 block discarded – undo
167 167
         }
168 168
         $extension = Swift::strtolowerWithStaticCache($extension);
169 169
 
170
-        return (string)$extension;
170
+        return (string) $extension;
171 171
     }
172 172
 }
Please login to merge, or discard this patch.
lib/classes/Swift/Mime/SimpleMessage.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
             $address = array($address => $name);
159 159
         }
160 160
 
161
-        if (!$this->_setHeaderFieldModel('Sender', (array)$address)) {
162
-            $this->getHeaders()->addMailboxHeader('Sender', (array)$address);
161
+        if (!$this->_setHeaderFieldModel('Sender', (array) $address)) {
162
+            $this->getHeaders()->addMailboxHeader('Sender', (array) $address);
163 163
         }
164 164
 
165 165
         return $this;
@@ -212,8 +212,8 @@  discard block
 block discarded – undo
212 212
             $addresses = array($addresses => $name);
213 213
         }
214 214
 
215
-        if (!$this->_setHeaderFieldModel('From', (array)$addresses)) {
216
-            $this->getHeaders()->addMailboxHeader('From', (array)$addresses);
215
+        if (!$this->_setHeaderFieldModel('From', (array) $addresses)) {
216
+            $this->getHeaders()->addMailboxHeader('From', (array) $addresses);
217 217
         }
218 218
 
219 219
         return $this;
@@ -266,8 +266,8 @@  discard block
 block discarded – undo
266 266
             $addresses = array($addresses => $name);
267 267
         }
268 268
 
269
-        if (!$this->_setHeaderFieldModel('Reply-To', (array)$addresses)) {
270
-            $this->getHeaders()->addMailboxHeader('Reply-To', (array)$addresses);
269
+        if (!$this->_setHeaderFieldModel('Reply-To', (array) $addresses)) {
270
+            $this->getHeaders()->addMailboxHeader('Reply-To', (array) $addresses);
271 271
         }
272 272
 
273 273
         return $this;
@@ -321,8 +321,8 @@  discard block
 block discarded – undo
321 321
             $addresses = array($addresses => $name);
322 322
         }
323 323
 
324
-        if (!$this->_setHeaderFieldModel('To', (array)$addresses)) {
325
-            $this->getHeaders()->addMailboxHeader('To', (array)$addresses);
324
+        if (!$this->_setHeaderFieldModel('To', (array) $addresses)) {
325
+            $this->getHeaders()->addMailboxHeader('To', (array) $addresses);
326 326
         }
327 327
 
328 328
         return $this;
@@ -373,8 +373,8 @@  discard block
 block discarded – undo
373 373
             $addresses = array($addresses => $name);
374 374
         }
375 375
 
376
-        if (!$this->_setHeaderFieldModel('Cc', (array)$addresses)) {
377
-            $this->getHeaders()->addMailboxHeader('Cc', (array)$addresses);
376
+        if (!$this->_setHeaderFieldModel('Cc', (array) $addresses)) {
377
+            $this->getHeaders()->addMailboxHeader('Cc', (array) $addresses);
378 378
         }
379 379
 
380 380
         return $this;
@@ -425,8 +425,8 @@  discard block
 block discarded – undo
425 425
             $addresses = array($addresses => $name);
426 426
         }
427 427
 
428
-        if (!$this->_setHeaderFieldModel('Bcc', (array)$addresses)) {
429
-            $this->getHeaders()->addMailboxHeader('Bcc', (array)$addresses);
428
+        if (!$this->_setHeaderFieldModel('Bcc', (array) $addresses)) {
429
+            $this->getHeaders()->addMailboxHeader('Bcc', (array) $addresses);
430 430
         }
431 431
 
432 432
         return $this;
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
     {
565 565
         $this->attach($entity);
566 566
 
567
-        return 'cid:' . $entity->getId();
567
+        return 'cid:'.$entity->getId();
568 568
     }
569 569
 
570 570
     /**
Please login to merge, or discard this patch.
lib/classes/Swift/Plugins/PopBeforeSmtpPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      */
140 140
     public function setTimeout($timeout)
141 141
     {
142
-        $this->_timeout = (int)$timeout;
142
+        $this->_timeout = (int) $timeout;
143 143
 
144 144
         return $this;
145 145
     }
@@ -306,11 +306,11 @@  discard block
 block discarded – undo
306 306
         $host = $this->_host;
307 307
         switch (Swift::strtolowerWithStaticCache($this->_crypto)) {
308 308
             case 'ssl':
309
-                $host = 'ssl://' . $host;
309
+                $host = 'ssl://'.$host;
310 310
                 break;
311 311
 
312 312
             case 'tls':
313
-                $host = 'tls://' . $host;
313
+                $host = 'tls://'.$host;
314 314
                 break;
315 315
         }
316 316
 
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
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $charset = Swift::strtolowerWithStaticCache(trim($charset));
107 107
         
108 108
         foreach (self::$_map as $pattern => $spec) {
109
-            $re = '/^' . $pattern . '$/D';
109
+            $re = '/^'.$pattern.'$/D';
110 110
             if (preg_match($re, $charset)) {
111 111
                 if (!array_key_exists($pattern, self::$_loaded)) {
112 112
                     $reflector = new ReflectionClass($spec['class']);
Please login to merge, or discard this patch.
lib/classes/Swift/Transport/Esmtp/AuthHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -185,8 +185,8 @@  discard block
 block discarded – undo
185 185
             }
186 186
             
187 187
             throw new Swift_TransportException(
188
-                'Failed to authenticate on SMTP server with username "' .
189
-                $this->_username . '" using ' . $count . ' possible authenticators'
188
+                'Failed to authenticate on SMTP server with username "'.
189
+                $this->_username.'" using '.$count.' possible authenticators'
190 190
             );
191 191
         }
192 192
     }
@@ -263,6 +263,6 @@  discard block
 block discarded – undo
263 263
             }
264 264
         }
265 265
 
266
-        throw new Swift_TransportException('Auth mode ' . $mode . ' is invalid');
266
+        throw new Swift_TransportException('Auth mode '.$mode.' is invalid');
267 267
     }
268 268
 }
Please login to merge, or discard this patch.
lib/swiftmailer_generate_mimes_config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@
 block discarded – undo
181 181
     ksort($valid_mime_types);
182 182
 
183 183
     // combine mime types and extensions array
184
-    $output = "$preamble\$swift_mime_types = array(\n    " . implode($valid_mime_types, ",\n    ") . "\n);";
184
+    $output = "$preamble\$swift_mime_types = array(\n    ".implode($valid_mime_types, ",\n    ")."\n);";
185 185
 
186 186
     // write mime_types.php config file
187 187
     /** @noinspection PhpUsageOfSilenceOperatorInspection */
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
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function setPort($port)
95 95
     {
96
-        $this->_params['port'] = (int)$port;
96
+        $this->_params['port'] = (int) $port;
97 97
 
98 98
         return $this;
99 99
     }
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function setTimeout($timeout)
119 119
     {
120
-        $this->_params['timeout'] = (int)$timeout;
121
-        $this->_buffer->setParam('timeout', (int)$timeout);
120
+        $this->_params['timeout'] = (int) $timeout;
121
+        $this->_buffer->setParam('timeout', (int) $timeout);
122 122
 
123 123
         return $this;
124 124
     }
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
      */
279 279
     public function executeCommand($command, $codes = array(), &$failures = null)
280 280
     {
281
-        $failures = (array)$failures;
281
+        $failures = (array) $failures;
282 282
         $stopSignal = false;
283 283
         $response = null;
284 284
 
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 
310 310
             $inArray = in_array(
311 311
                 Swift::strtolowerWithStaticCache($method),
312
-                array_map(array('Swift', 'strtolowerWithStaticCache'), (array)$handler->exposeMixinMethods()),
312
+                array_map(array('Swift', 'strtolowerWithStaticCache'), (array) $handler->exposeMixinMethods()),
313 313
                 true
314 314
             );
315 315
 
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
             }
330 330
         }
331 331
 
332
-        trigger_error('Call to undefined method ' . $method, E_USER_ERROR);
332
+        trigger_error('Call to undefined method '.$method, E_USER_ERROR);
333 333
     }
334 334
 
335 335
     /** Get the params to initialize the buffer */
@@ -395,10 +395,10 @@  discard block
 block discarded – undo
395 395
 
396 396
         $params = array();
397 397
         foreach ($handlers as $handler) {
398
-            $params = array_merge($params, (array)$handler->getMailParams());
398
+            $params = array_merge($params, (array) $handler->getMailParams());
399 399
         }
400 400
 
401
-        $paramStr = !empty($params) ? ' ' . implode(' ', $params) : '';
401
+        $paramStr = !empty($params) ? ' '.implode(' ', $params) : '';
402 402
         $this->executeCommand(
403 403
             sprintf("MAIL FROM:<%s>%s\r\n", $address, $paramStr), array(250)
404 404
         );
@@ -415,10 +415,10 @@  discard block
 block discarded – undo
415 415
 
416 416
         $params = array();
417 417
         foreach ($handlers as $handler) {
418
-            $params = array_merge($params, (array)$handler->getRcptParams());
418
+            $params = array_merge($params, (array) $handler->getRcptParams());
419 419
         }
420 420
 
421
-        $paramStr = !empty($params) ? ' ' . implode(' ', $params) : '';
421
+        $paramStr = !empty($params) ? ' '.implode(' ', $params) : '';
422 422
         $this->executeCommand(
423 423
             sprintf("RCPT TO:<%s>%s\r\n", $address, $paramStr), array(250, 251, 252)
424 424
         );
Please login to merge, or discard this patch.