Completed
Pull Request — 5.x (#20)
by Lars
18:15
created
lib/classes/Swift/Mime/MimePart.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
     /**
190 190
      * Set the nesting level of this entity
191 191
      *
192
-     * @param $level
192
+     * @param integer $level
193 193
      */
194 194
     protected function _setNestingLevel($level)
195 195
     {
Please login to merge, or discard this patch.
lib/classes/Swift/Transport/MailTransport.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -286,10 +286,10 @@
 block discarded – undo
286 286
     /**
287 287
      * Return php mail extra params to use for invoker->mail.
288 288
      *
289
-     * @param $extraParams
289
+     * @param string $extraParams
290 290
      * @param $reversePath
291 291
      *
292
-     * @return mixed <string|null>
292
+     * @return string|null <string|null>
293 293
      */
294 294
     private function _formatExtraParams($extraParams, $reversePath)
295 295
     {
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function send(Swift_Mime_Message $message, &$failedRecipients = null)
106 106
     {
107
-        $failedRecipients = (array)$failedRecipients;
107
+        $failedRecipients = (array) $failedRecipients;
108 108
 
109 109
         $evt = $this->_eventDispatcher->createSendEvent($this, $message);
110 110
         if ($evt) {
@@ -116,9 +116,9 @@  discard block
 block discarded – undo
116 116
         }
117 117
 
118 118
         $count = (
119
-            count((array)$message->getTo())
120
-            + count((array)$message->getCc())
121
-            + count((array)$message->getBcc())
119
+            count((array) $message->getTo())
120
+            + count((array) $message->getCc())
121
+            + count((array) $message->getBcc())
122 122
         );
123 123
 
124 124
         /*
@@ -181,9 +181,9 @@  discard block
 block discarded – undo
181 181
         } else {
182 182
             $failedRecipients = array_merge(
183 183
                 $failedRecipients,
184
-                array_keys((array)$message->getTo()),
185
-                array_keys((array)$message->getCc()),
186
-                array_keys((array)$message->getBcc())
184
+                array_keys((array) $message->getTo()),
185
+                array_keys((array) $message->getCc()),
186
+                array_keys((array) $message->getBcc())
187 187
             );
188 188
 
189 189
             if ($evt) {
Please login to merge, or discard this patch.
lib/classes/Swift/Transport/NullTransport.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,9 +77,9 @@
 block discarded – undo
77 77
         }
78 78
 
79 79
         $count = (
80
-            count((array)$message->getTo())
81
-            + count((array)$message->getCc())
82
-            + count((array)$message->getBcc())
80
+            count((array) $message->getTo())
81
+            + count((array) $message->getCc())
82
+            + count((array) $message->getBcc())
83 83
         );
84 84
 
85 85
         return $count;
Please login to merge, or discard this patch.
lib/classes/Swift/Mime/Headers/MailboxHeader.php 1 patch
Spacing   +3 added lines, -3 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
     }
Please login to merge, or discard this patch.
lib/classes/Swift/Mime/Headers/AbstractHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@
 block discarded – undo
268 268
     protected function encodeWords(Swift_Mime_Header $header, $input, $usedLength = -1)
269 269
     {
270 270
         $value = '';
271
-        $usedLength = (int)$usedLength;
271
+        $usedLength = (int) $usedLength;
272 272
 
273 273
         $tokens = $this->getEncodableWordTokens($input);
274 274
 
Please login to merge, or discard this patch.
lib/classes/Swift/StreamFilters/ByteArrayReplacementFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         if ($i !== null) {
112 112
             $tree[-1] = min(count($replace) - 1, $i);
113 113
             $tree[-2] = $last_size;
114
-            $this->_treeMaxLen = (int)$size;
114
+            $this->_treeMaxLen = (int) $size;
115 115
         }
116 116
         foreach ($replace as $rep) {
117 117
             if (!is_array($rep)) {
Please login to merge, or discard this patch.
lib/classes/Swift/KeyCache/DiskKeyCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -304,7 +304,7 @@
 block discarded – undo
304 304
      */
305 305
     private function _getHandle($nsKey, $itemKey, $position)
306 306
     {
307
-        $position = (int)$position;
307
+        $position = (int) $position;
308 308
 
309 309
         if (!isset($this->_keys[$nsKey][$itemKey])) {
310 310
             $openMode = $this->hasKey($nsKey, $itemKey) ? 'r+b' : 'w+b';
Please login to merge, or discard this patch.