| @@ -212,7 +212,7 @@ discard block | ||
| 212 | 212 |      { | 
| 213 | 213 |          $encoded = \preg_replace('/\r\n|\r|\n/', "\r\n", \rtrim(\convert_uuencode($bytes))); | 
| 214 | 214 | // removes ending '`' line | 
| 215 | -        $this->stream->write("\r\n" . \rtrim(\substr($encoded, 0, -1))); | |
| 215 | +        $this->stream->write("\r\n".\rtrim(\substr($encoded, 0, -1))); | |
| 216 | 216 | } | 
| 217 | 217 | |
| 218 | 218 | /** | 
| @@ -222,7 +222,7 @@ discard block | ||
| 222 | 222 | */ | 
| 223 | 223 | private function handleRemainder(string $string) : string | 
| 224 | 224 |      { | 
| 225 | - $write = $this->remainder . $string; | |
| 225 | + $write = $this->remainder.$string; | |
| 226 | 226 | $nRem = \strlen($write) % 45; | 
| 227 | 227 | $this->remainder = ''; | 
| 228 | 228 |          if ($nRem !== 0) { | 
| @@ -87,11 +87,11 @@ discard block | ||
| 87 | 87 | */ | 
| 88 | 88 | private function readEncodedChars(int $length, string $pre = '') : string | 
| 89 | 89 |      { | 
| 90 | - $str = $pre . $this->stream->read($length); | |
| 90 | + $str = $pre.$this->stream->read($length); | |
| 91 | 91 | $len = \strlen($str); | 
| 92 | 92 |          if ($len > 0 && !\preg_match('/^[0-9a-f]{2}$|^[\r\n]{1,2}.?$/is', $str) && $this->stream->isSeekable()) { | 
| 93 | 93 | $this->stream->seek(-$len, SEEK_CUR); | 
| 94 | - return '3D'; // '=' character | |
| 94 | + return '3D'; // '=' character | |
| 95 | 95 | } | 
| 96 | 96 | return $str; | 
| 97 | 97 | } | 
| @@ -174,7 +174,7 @@ discard block | ||
| 174 | 174 | public function write($string) : int | 
| 175 | 175 |      { | 
| 176 | 176 | $encodedLine = \quoted_printable_encode($this->lastLine); | 
| 177 | - $lineAndString = \rtrim(\quoted_printable_encode($this->lastLine . $string), "\r\n"); | |
| 177 | + $lineAndString = \rtrim(\quoted_printable_encode($this->lastLine.$string), "\r\n"); | |
| 178 | 178 | $write = \substr($lineAndString, \strlen($encodedLine)); | 
| 179 | 179 | $this->stream->write($write); | 
| 180 | 180 | $written = \strlen($string); | 
| @@ -176,7 +176,7 @@ | ||
| 176 | 176 | */ | 
| 177 | 177 | public function write($string) : int | 
| 178 | 178 |      { | 
| 179 | - $bytes = $this->remainder . $string; | |
| 179 | + $bytes = $this->remainder.$string; | |
| 180 | 180 | $len = \strlen($bytes); | 
| 181 | 181 |          if (($len % 3) !== 0) { | 
| 182 | 182 | $this->remainder = \substr($bytes, -($len % 3)); | 
| @@ -66,12 +66,12 @@ | ||
| 66 | 66 |          if ($this->tell() !== 0) { | 
| 67 | 67 | $next = $this->lineLength - ($this->position % ($this->lineLength + $this->lineEndingLength)); | 
| 68 | 68 |              if (\strlen($string) > $next) { | 
| 69 | - $firstLine = \substr($string, 0, $next) . $this->lineEnding; | |
| 69 | + $firstLine = \substr($string, 0, $next).$this->lineEnding; | |
| 70 | 70 | $string = \substr($string, $next); | 
| 71 | 71 | } | 
| 72 | 72 | } | 
| 73 | 73 | // chunk_split always ends with the passed line ending | 
| 74 | - $chunked = $firstLine . \chunk_split($string, $this->lineLength, $this->lineEnding); | |
| 74 | + $chunked = $firstLine.\chunk_split($string, $this->lineLength, $this->lineEnding); | |
| 75 | 75 | return \substr($chunked, 0, \strlen($chunked) - $this->lineEndingLength); | 
| 76 | 76 | } | 
| 77 | 77 | |
| @@ -51,7 +51,7 @@ discard block | ||
| 51 | 51 | */ | 
| 52 | 52 | public function close() : void | 
| 53 | 53 |      { | 
| 54 | - $this->stream = null; // @phpstan-ignore-line | |
| 54 | + $this->stream = null; // @phpstan-ignore-line | |
| 55 | 55 | } | 
| 56 | 56 | |
| 57 | 57 | /** | 
| @@ -61,7 +61,7 @@ discard block | ||
| 61 | 61 | */ | 
| 62 | 62 | public function detach() | 
| 63 | 63 |      { | 
| 64 | - $this->stream = null; // @phpstan-ignore-line | |
| 64 | + $this->stream = null; // @phpstan-ignore-line | |
| 65 | 65 | |
| 66 | 66 | return null; | 
| 67 | 67 | } |