@@ -175,15 +175,12 @@ discard block |
||
175 | 175 | // $Flags is supposed to be a bitmask |
176 | 176 | if($file->Flags === 1){ // no compression |
177 | 177 | // nada |
178 | - } |
|
179 | - elseif($file->Flags === 3){ // deflate (probably unsed) |
|
178 | + } elseif($file->Flags === 3){ // deflate (probably unsed) |
|
180 | 179 | $content = \gzinflate($content); |
181 | - } |
|
182 | - elseif($file->Flags === 5){ // lzma (requires ext-xz) |
|
180 | + } elseif($file->Flags === 5){ // lzma (requires ext-xz) |
|
183 | 181 | // https://bitbucket.org/mugadr_m/wildstar-studio/issues/23 |
184 | 182 | $content = \xzdecode(\substr($content, 0, 5).\pack('Q', $file->SizeUncompressed).\substr($content, 5)); |
185 | - } |
|
186 | - else{ |
|
183 | + } else{ |
|
187 | 184 | throw new WSDBException('invalid file flag'); |
188 | 185 | } |
189 | 186 | |
@@ -193,8 +190,7 @@ discard block |
||
193 | 190 | $this->errors[$file->Hash] = $file; |
194 | 191 | $this->logger->error('error writing '.$dest); |
195 | 192 | |
196 | - } |
|
197 | - elseif($bytesWritten !== $file->SizeUncompressed){ |
|
193 | + } elseif($bytesWritten !== $file->SizeUncompressed){ |
|
198 | 194 | $this->warnings[$file->Hash] = $file; |
199 | 195 | // throw new WSDBException |
200 | 196 | $this->logger->warning('size discrepancy for '.$dest.', expected '.$file->SizeUncompressed.' got '.$bytesWritten); |