Passed
Push — master ( ec84d3...d6dac2 )
by Darko
07:55
created
app/Extensions/util/PhpYenc.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,8 +181,8 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.