@@ -181,8 +181,8 @@ |
||
181 | 181 | } |
182 | 182 | |
183 | 183 | $encoded = "=ybegin line=$lineLength size=$stringLength name=".trim($filename)."\r\n". |
184 | - trim(chunk_split($encoded, $lineLength)). |
|
185 | - "\r\n=yend size=$stringLength"; |
|
184 | + trim(chunk_split($encoded, $lineLength)). |
|
185 | + "\r\n=yend size=$stringLength"; |
|
186 | 186 | |
187 | 187 | // Add a CRC32 checksum if desired. |
188 | 188 | if ($crc32) { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | { |
40 | 40 | $crc = ''; |
41 | 41 | // Extract the yEnc string itself. |
42 | - if (! preg_match('/=ybegin.*size=([^ $]+).*\r\n(.*)\r\n=yend.*size=([^ $\r\n]+)(.*)/ims', $text, $encoded)) { |
|
42 | + if (!preg_match('/=ybegin.*size=([^ $]+).*\r\n(.*)\r\n=yend.*size=([^ $\r\n]+)(.*)/ims', $text, $encoded)) { |
|
43 | 43 | return false; |
44 | 44 | } |
45 | 45 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | */ |
102 | 102 | public static function decodeIgnore(string &$text): string |
103 | 103 | { |
104 | - if (! preg_match('/^(=yBegin.*=yEnd[^$]*)$/ims', $text, $matches)) { |
|
104 | + if (!preg_match('/^(=yBegin.*=yEnd[^$]*)$/ims', $text, $matches)) { |
|
105 | 105 | return $text; |
106 | 106 | } |
107 | 107 |