Completed
Branch master (364c85)
by Rasmus
12:37
created
src/MailServiceLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
         return implode(
105 105
             ", ",
106 106
             array_map(
107
-                function (Address $address) {
107
+                function(Address $address) {
108 108
                     $name = $address->getName();
109 109
                     $email = $address->getEmail();
110 110
 
Please login to merge, or discard this patch.
src/MIMEWriter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -110,8 +110,8 @@  discard block
 block discarded – undo
110 110
         $text = $message->getText();
111 111
         $html = $message->getHTML();
112 112
 
113
-        if (! empty($text)) {
114
-            if (! empty($html)) {
113
+        if (!empty($text)) {
114
+            if (!empty($html)) {
115 115
                 $boundary = $this->createMultipartBoundaryName("alternative");
116 116
 
117 117
                 $this->writeAlternativeContentTypeHeader($boundary);
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             } else {
128 128
                 $this->writeTextPart($text);
129 129
             }
130
-        } elseif (! empty($html)) {
130
+        } elseif (!empty($html)) {
131 131
             $this->writeHTMLPart($html);
132 132
         }
133 133
     }
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
                 implode(
226 226
                     ", ",
227 227
                     array_map(
228
-                        function (Address $address) {
228
+                        function(Address $address) {
229 229
                             $email = $address->getEmail();
230 230
                             $name = $address->getName();
231 231
 
Please login to merge, or discard this patch.
src/Address.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
      */
30 30
     public function __construct($email, $name = null)
31 31
     {
32
-        if (! self::isValidEmail($email)) {
32
+        if (!self::isValidEmail($email)) {
33 33
             throw new InvalidArgumentException("invalid e-mail address");
34 34
         }
35 35
 
36
-        if (! empty($name)) {
36
+        if (!empty($name)) {
37 37
             if (preg_match('/[\r\n]/', $name)) {
38 38
                 throw new RuntimeException("CR/LF injection detected");
39 39
             }
Please login to merge, or discard this patch.
src/SMTP/Connector/SocketConnector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     {
33 33
         $socket = @fsockopen($this->host, $this->port);
34 34
 
35
-        if (! $socket) {
35
+        if (!$socket) {
36 36
             throw new SMTPException("Could not open SMTP Port.");
37 37
         }
38 38
 
Please login to merge, or discard this patch.
src/SMTP/SMTPMailService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $this->getClient()->sendMail(
51 51
             $this->getSender($message),
52 52
             $this->getRecipients($message),
53
-            function ($socket) use ($message) {
53
+            function($socket) use ($message) {
54 54
                 $writer = new MIMEWriter($socket);
55 55
 
56 56
                 $writer->writeMessage($message);
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     protected function getClient()
83 83
     {
84
-        if (! isset($this->client)) {
84
+        if (!isset($this->client)) {
85 85
             $this->client = $this->connector->connect($this->client_domain);
86 86
 
87 87
             $this->authenticator->authenticate($this->client);
Please login to merge, or discard this patch.
src/SMTP/SMTPClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
     {
92 92
         $this->sendCommand("STARTTLS", "220");
93 93
 
94
-        if (! stream_socket_enable_crypto($this->socket, true, $crypto_method)) {
94
+        if (!stream_socket_enable_crypto($this->socket, true, $crypto_method)) {
95 95
             throw new SMTPException("STARTTLS failed to enable crypto-method: {$crypto_method}");
96 96
         }
97 97
     }
Please login to merge, or discard this patch.