@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | { |
210 | 210 | $this->_privateKey = $privateKey; |
211 | 211 | $this->_domainName = $domainName; |
212 | - $this->_signerIdentity = '@' . $domainName; |
|
212 | + $this->_signerIdentity = '@'.$domainName; |
|
213 | 213 | $this->_selector = $selector; |
214 | 214 | $this->_passphrase = $passphrase; |
215 | 215 | |
@@ -580,7 +580,7 @@ discard block |
||
580 | 580 | ); |
581 | 581 | |
582 | 582 | if ($this->_bodyCanon != 'simple') { |
583 | - $params['c'] = $this->_headerCanon . '/' . $this->_bodyCanon; |
|
583 | + $params['c'] = $this->_headerCanon.'/'.$this->_bodyCanon; |
|
584 | 584 | } elseif ($this->_headerCanon != 'simple') { |
585 | 585 | $params['c'] = $this->_headerCanon; |
586 | 586 | } |
@@ -614,7 +614,7 @@ discard block |
||
614 | 614 | |
615 | 615 | $string = ''; |
616 | 616 | foreach ($params as $k => $v) { |
617 | - $string .= $k . '=' . $v . '; '; |
|
617 | + $string .= $k.'='.$v.'; '; |
|
618 | 618 | } |
619 | 619 | |
620 | 620 | $string = trim($string); |
@@ -623,14 +623,14 @@ discard block |
||
623 | 623 | // Add the last DKIM-Signature |
624 | 624 | $tmp = $headers->getAll('DKIM-Signature'); |
625 | 625 | $this->_dkimHeader = end($tmp); |
626 | - $this->_addHeader(trim($this->_dkimHeader->toString()) . "\r\n b=", true); |
|
626 | + $this->_addHeader(trim($this->_dkimHeader->toString())."\r\n b=", true); |
|
627 | 627 | $this->_endOfHeaders(); |
628 | 628 | |
629 | 629 | if ($this->_debugHeaders) { |
630 | 630 | $headers->addTextHeader('X-DebugHash', base64_encode($this->_headerHash)); |
631 | 631 | } |
632 | 632 | |
633 | - $this->_dkimHeader->setValue($string . ' b=' . trim(chunk_split(base64_encode($this->_getEncryptedHash()), 73, ' '))); |
|
633 | + $this->_dkimHeader->setValue($string.' b='.trim(chunk_split(base64_encode($this->_getEncryptedHash()), 73, ' '))); |
|
634 | 634 | |
635 | 635 | return $this; |
636 | 636 | } |
@@ -648,7 +648,7 @@ discard block |
||
648 | 648 | $name = Swift::strtolowerWithStaticCache(trim($exploded[0])); |
649 | 649 | $value = str_replace("\r\n", '', $exploded[1]); |
650 | 650 | $value = preg_replace("/[ \t][ \t]+/", ' ', $value); |
651 | - $header = $name . ':' . trim($value) . ($is_sig ? '' : "\r\n"); |
|
651 | + $header = $name.':'.trim($value).($is_sig ? '' : "\r\n"); |
|
652 | 652 | case 'simple': |
653 | 653 | // Nothing to do |
654 | 654 | } |
@@ -780,13 +780,13 @@ discard block |
||
780 | 780 | |
781 | 781 | $pkeyId = openssl_get_privatekey($this->_privateKey, $this->_passphrase); |
782 | 782 | if (!$pkeyId) { |
783 | - throw new Swift_SwiftException('Unable to load DKIM Private Key [' . openssl_error_string() . ']'); |
|
783 | + throw new Swift_SwiftException('Unable to load DKIM Private Key ['.openssl_error_string().']'); |
|
784 | 784 | } |
785 | 785 | |
786 | 786 | if (openssl_sign($this->_headerCanonData, $signature, $pkeyId, $algorithm)) { |
787 | 787 | return $signature; |
788 | 788 | } |
789 | 789 | |
790 | - throw new Swift_SwiftException('Unable to sign DKIM Hash [' . openssl_error_string() . ']'); |
|
790 | + throw new Swift_SwiftException('Unable to sign DKIM Hash ['.openssl_error_string().']'); |
|
791 | 791 | } |
792 | 792 | } |