Completed
Push — 5.x ( c9dc5a...95e895 )
by Lars
17:11 queued 04:33
created
lib/classes/Swift/Transport/EsmtpTransport.php 2 patches
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.
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.