@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | // Function defined by PHP should be called using the correct casing. |
111 | 111 | 'native_function_casing' => true, |
112 | 112 | // Add leading `\` before function invocation to speed up resolving. |
113 | - 'native_function_invocation' => ['include'=>['@all','trans']], |
|
113 | + 'native_function_invocation' => ['include'=>['@all', 'trans']], |
|
114 | 114 | // Native type hints for functions should use the correct case. |
115 | 115 | 'native_function_type_declaration_casing' => true, |
116 | 116 | // All instances created with new keyword must be followed by braces. |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | // There should not be space before or after object operators `->` and `?->`. |
193 | 193 | 'object_operator_without_whitespace' => true, |
194 | 194 | // Orders the elements of classes/interfaces/traits. |
195 | - 'ordered_class_elements' => ['order'=>['use_trait','constant_public','constant_protected','constant_private','property_public','property_protected','property_private']], |
|
195 | + 'ordered_class_elements' => ['order'=>['use_trait', 'constant_public', 'constant_protected', 'constant_private', 'property_public', 'property_protected', 'property_private']], |
|
196 | 196 | // Ordering `use` statements. |
197 | 197 | 'ordered_imports' => true, |
198 | 198 | // Orders the interfaces in an `implements` or `interface extends` clause. |
@@ -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 |