@@ -257,7 +257,7 @@ |
||
| 257 | 257 | } |
| 258 | 258 | $streamContext = stream_context_create($options); |
| 259 | 259 | |
| 260 | - set_error_handler(function ($type, $msg) { |
|
| 260 | + set_error_handler(function($type, $msg) { |
|
| 261 | 261 | throw new Swift_TransportException('Connection could not be established with host '.$this->params['host'].' :'.$msg); |
| 262 | 262 | }); |
| 263 | 263 | try { |
@@ -183,7 +183,7 @@ |
||
| 183 | 183 | { |
| 184 | 184 | list($domain, $username) = $this->getDomainAndUsername($username); |
| 185 | 185 | //$challenge, $context, $targetInfoH, $targetName, $domainName, $workstation, $DNSDomainName, $DNSServerName, $blob, $ter |
| 186 | - list($challenge, , , , , $workstation, , , $blob) = $this->parseMessage2($response); |
|
| 186 | + list($challenge,,,,, $workstation,,, $blob) = $this->parseMessage2($response); |
|
| 187 | 187 | |
| 188 | 188 | if (!$v2) { |
| 189 | 189 | // LMv1 |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | require __DIR__.'/classes/Swift.php'; |
| 12 | 12 | |
| 13 | -Swift::registerAutoload(function () { |
|
| 13 | +Swift::registerAutoload(function() { |
|
| 14 | 14 | // Load in dependency maps |
| 15 | 15 | require __DIR__.'/dependency_maps/cache_deps.php'; |
| 16 | 16 | require __DIR__.'/dependency_maps/mime_deps.php'; |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | namespace Egulias; |
| 8 | 8 | |
| 9 | -require_once __DIR__ . '/egulias/email-validator/AutoLoader.php'; |
|
| 9 | +require_once __DIR__.'/egulias/email-validator/AutoLoader.php'; |
|
| 10 | 10 | |
| 11 | 11 | $autoloader = new EguliasAutoLoader(__NAMESPACE__, dirname(__DIR__)); |
| 12 | 12 | |
@@ -130,7 +130,7 @@ |
||
| 130 | 130 | */ |
| 131 | 131 | protected function addLongEmailWarning($localPart, $parsedDomainPart) |
| 132 | 132 | { |
| 133 | - if (strlen($localPart . '@' . $parsedDomainPart) > self::EMAIL_MAX_LENGTH) { |
|
| 133 | + if (strlen($localPart.'@'.$parsedDomainPart) > self::EMAIL_MAX_LENGTH) { |
|
| 134 | 134 | $this->warnings[EmailTooLong::CODE] = new EmailTooLong(); |
| 135 | 135 | } |
| 136 | 136 | } |
@@ -10,6 +10,6 @@ |
||
| 10 | 10 | |
| 11 | 11 | public function __construct() |
| 12 | 12 | { |
| 13 | - $this->message = 'Email is too long, exceeds ' . EmailParser::EMAIL_MAX_LENGTH; |
|
| 13 | + $this->message = 'Email is too long, exceeds '.EmailParser::EMAIL_MAX_LENGTH; |
|
| 14 | 14 | } |
| 15 | 15 | } |
@@ -42,6 +42,6 @@ |
||
| 42 | 42 | |
| 43 | 43 | public function __toString() |
| 44 | 44 | { |
| 45 | - return $this->message() . " rfc: " . $this->rfcNumber . "interal code: " . static::CODE; |
|
| 45 | + return $this->message()." rfc: ".$this->rfcNumber."interal code: ".static::CODE; |
|
| 46 | 46 | } |
| 47 | 47 | } |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | $search->skipUntil($type); |
| 152 | 152 | |
| 153 | 153 | if (!$search->lookahead) { |
| 154 | - throw new \UnexpectedValueException($type . ' not found'); |
|
| 154 | + throw new \UnexpectedValueException($type.' not found'); |
|
| 155 | 155 | } |
| 156 | 156 | return true; |
| 157 | 157 | } |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | { |
| 190 | 190 | return array( |
| 191 | 191 | '[a-zA-Z_]+[46]?', //ASCII and domain literal |
| 192 | - '[^\x00-\x7F]', //UTF-8 |
|
| 192 | + '[^\x00-\x7F]', //UTF-8 |
|
| 193 | 193 | '[0-9]+', |
| 194 | 194 | '\r\n', |
| 195 | 195 | '::', |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | { |
| 100 | 100 | $variant = INTL_IDNA_VARIANT_UTS46; |
| 101 | 101 | |
| 102 | - $host = rtrim(idn_to_ascii($host, IDNA_DEFAULT, $variant), '.') . '.'; |
|
| 102 | + $host = rtrim(idn_to_ascii($host, IDNA_DEFAULT, $variant), '.').'.'; |
|
| 103 | 103 | |
| 104 | 104 | return $this->validateDnsRecords($host); |
| 105 | 105 | } |