@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function getTokenSeparators() |
45 | 45 | { |
46 | - return [ '<', '>' ]; |
|
46 | + return ['<', '>']; |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
@@ -82,12 +82,12 @@ discard block |
||
82 | 82 | foreach ($parts as $p) { |
83 | 83 | $val = $p->getValue(); |
84 | 84 | if ((($p instanceof LiteralPart) && !($p instanceof CommentPart)) && $val !== '') { |
85 | - $val = '"' . preg_replace('/(["\\\])/', "\\\\$1", $val) . '"'; |
|
85 | + $val = '"'.preg_replace('/(["\\\])/', "\\\\$1", $val).'"'; |
|
86 | 86 | } else { |
87 | 87 | $val = preg_replace('/\s+/', '', $val); |
88 | 88 | } |
89 | 89 | $strEmail .= $val; |
90 | 90 | } |
91 | - return [ $this->partFactory->newAddressPart('', $strEmail) ]; |
|
91 | + return [$this->partFactory->newAddressPart('', $strEmail)]; |
|
92 | 92 | } |
93 | 93 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | public function getTokenSeparators() |
62 | 62 | { |
63 | - return [ ',', ';', '\s+' ]; |
|
63 | + return [',', ';', '\s+']; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
@@ -116,14 +116,14 @@ discard block |
||
116 | 116 | ) |
117 | 117 | ]; |
118 | 118 | } elseif ($part instanceof AddressPart) { |
119 | - return [ $this->partFactory->newAddressPart($strName, $part->getEmail()) ]; |
|
119 | + return [$this->partFactory->newAddressPart($strName, $part->getEmail())]; |
|
120 | 120 | } elseif ((($part instanceof LiteralPart) && !($part instanceof CommentPart)) && $part->getValue() !== '') { |
121 | - $strEmail .= '"' . preg_replace('/(["\\\])/', "\\\\$1", $part->getValue()) . '"'; |
|
121 | + $strEmail .= '"'.preg_replace('/(["\\\])/', "\\\\$1", $part->getValue()).'"'; |
|
122 | 122 | } else { |
123 | 123 | $strEmail .= preg_replace('/\s+/', '', $part->getValue()); |
124 | 124 | } |
125 | 125 | $strName .= $part->getValue(); |
126 | 126 | } |
127 | - return [ $this->partFactory->newAddressPart('', $strEmail) ]; |
|
127 | + return [$this->partFactory->newAddressPart('', $strEmail)]; |
|
128 | 128 | } |
129 | 129 | } |