@@ -468,7 +468,7 @@ discard block |
||
468 | 468 | public function getBoundary() |
469 | 469 | { |
470 | 470 | if (!isset($this->_boundary)) { |
471 | - $this->_boundary = '_=_swift_v5_' . time() . '_' . md5(getmypid() . mt_rand() . uniqid('', true)) . '_=_'; |
|
471 | + $this->_boundary = '_=_swift_v5_'.time().'_'.md5(getmypid().mt_rand().uniqid('', true)).'_=_'; |
|
472 | 472 | } |
473 | 473 | |
474 | 474 | return $this->_boundary; |
@@ -539,7 +539,7 @@ discard block |
||
539 | 539 | if ($this->_cache->hasKey($this->_cacheKey, 'body')) { |
540 | 540 | $body = $this->_cache->getString($this->_cacheKey, 'body'); |
541 | 541 | } else { |
542 | - $body = "\r\n" . $this->_encoder->encodeString($this->getBody(), 0, $this->getMaxLineLength()); |
|
542 | + $body = "\r\n".$this->_encoder->encodeString($this->getBody(), 0, $this->getMaxLineLength()); |
|
543 | 543 | $this->_cache->setString($this->_cacheKey, 'body', $body, Swift_KeyCache::MODE_WRITE); |
544 | 544 | } |
545 | 545 | $string .= $body; |
@@ -547,10 +547,10 @@ discard block |
||
547 | 547 | |
548 | 548 | if (!empty($this->_immediateChildren)) { |
549 | 549 | foreach ($this->_immediateChildren as $child) { |
550 | - $string .= "\r\n\r\n--" . $this->getBoundary() . "\r\n"; |
|
550 | + $string .= "\r\n\r\n--".$this->getBoundary()."\r\n"; |
|
551 | 551 | $string .= $child->toString(); |
552 | 552 | } |
553 | - $string .= "\r\n\r\n--" . $this->getBoundary() . "--\r\n"; |
|
553 | + $string .= "\r\n\r\n--".$this->getBoundary()."--\r\n"; |
|
554 | 554 | } |
555 | 555 | |
556 | 556 | return $string; |
@@ -617,10 +617,10 @@ discard block |
||
617 | 617 | |
618 | 618 | if (!empty($this->_immediateChildren)) { |
619 | 619 | foreach ($this->_immediateChildren as $child) { |
620 | - $is->write("\r\n\r\n--" . $this->getBoundary() . "\r\n"); |
|
620 | + $is->write("\r\n\r\n--".$this->getBoundary()."\r\n"); |
|
621 | 621 | $child->toByteStream($is); |
622 | 622 | } |
623 | - $is->write("\r\n\r\n--" . $this->getBoundary() . "--\r\n"); |
|
623 | + $is->write("\r\n\r\n--".$this->getBoundary()."--\r\n"); |
|
624 | 624 | } |
625 | 625 | } |
626 | 626 | |
@@ -751,12 +751,12 @@ discard block |
||
751 | 751 | { |
752 | 752 | $idLeft = $this->_generateNewCacheKey(); |
753 | 753 | $idRight = !empty($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'swift.generated'; |
754 | - $id = $idLeft . '@' . $idRight; |
|
754 | + $id = $idLeft.'@'.$idRight; |
|
755 | 755 | |
756 | 756 | try { |
757 | 757 | $this->_assertValidId($id); |
758 | 758 | } catch (Swift_RfcComplianceException $e) { |
759 | - $id = $idLeft . '@swift.generated'; |
|
759 | + $id = $idLeft.'@swift.generated'; |
|
760 | 760 | } |
761 | 761 | |
762 | 762 | return $id; |
@@ -769,7 +769,7 @@ discard block |
||
769 | 769 | */ |
770 | 770 | private function _generateNewCacheKey() |
771 | 771 | { |
772 | - return md5(getmypid() . '.' . time() . '.' . uniqid(mt_rand(), true)); |
|
772 | + return md5(getmypid().'.'.time().'.'.uniqid(mt_rand(), true)); |
|
773 | 773 | } |
774 | 774 | |
775 | 775 | private function _readStream(Swift_OutputByteStream $os) |
@@ -852,10 +852,10 @@ discard block |
||
852 | 852 | $lowercaseType = Swift::strtolowerWithStaticCache($child->getContentType()); |
853 | 853 | |
854 | 854 | if (isset($filter[$realLevel]) && isset($filter[$realLevel][$lowercaseType])) { |
855 | - return (int)$filter[$realLevel][$lowercaseType]; |
|
855 | + return (int) $filter[$realLevel][$lowercaseType]; |
|
856 | 856 | } |
857 | 857 | |
858 | - return (int)$realLevel; |
|
858 | + return (int) $realLevel; |
|
859 | 859 | } |
860 | 860 | |
861 | 861 | /** |
@@ -949,7 +949,7 @@ discard block |
||
949 | 949 | private function _assertValidId($id) |
950 | 950 | { |
951 | 951 | if ($this->_emailValidator->isValidWrapper($id) === false) { |
952 | - throw new Swift_RfcComplianceException('Invalid ID given <' . $id . '>'); |
|
952 | + throw new Swift_RfcComplianceException('Invalid ID given <'.$id.'>'); |
|
953 | 953 | } |
954 | 954 | } |
955 | 955 |