@@ -13,4 +13,4 @@ |
||
13 | 13 | |
14 | 14 | require 'phar://pipelines.phar/bin/pipelines'; |
15 | 15 | |
16 | -__HALT_COMPILER(); |
|
16 | +__HALT_COMPILER(); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | $this->contents[$pos + 3] = $timeStampBytes[3]; |
105 | 105 | |
106 | 106 | // skip timestamp, compressed file size and crc32 checksum |
107 | - $pos += 3*4; |
|
107 | + $pos += 3 * 4; |
|
108 | 108 | |
109 | 109 | // update or skip file flags - see Bug #77022, use 0644 over 0666 |
110 | 110 | // - see Bug #79082, use 0644 over 0664 |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | ); |
155 | 155 | |
156 | 156 | if (!isset($algos[$signatureAlgo])) { |
157 | - throw new \UnexpectedValueException('Invalid hash algorithm given: '.$signatureAlgo.' expected one of Phar::MD5, Phar::SHA1, Phar::SHA256 or Phar::SHA512'); // @codeCoverageIgnore |
|
157 | + throw new \UnexpectedValueException('Invalid hash algorithm given: ' . $signatureAlgo . ' expected one of Phar::MD5, Phar::SHA1, Phar::SHA256 or Phar::SHA512'); // @codeCoverageIgnore |
|
158 | 158 | } |
159 | 159 | $algo = $algos[$signatureAlgo]; |
160 | 160 | |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | |
169 | 169 | $this->contents = substr($this->contents, 0, $pos) . $signature; |
170 | 170 | |
171 | - return (bool) file_put_contents($path, $this->contents); |
|
171 | + return (bool)file_put_contents($path, $this->contents); |
|
172 | 172 | } |
173 | 173 | |
174 | 174 | /** |
@@ -225,11 +225,11 @@ discard block |
||
225 | 225 | $pos += 4 + $filenameLength; |
226 | 226 | |
227 | 227 | // skip filesize and timestamp |
228 | - $pos += 2*4; |
|
228 | + $pos += 2 * 4; |
|
229 | 229 | |
230 | 230 | $compressedSizes += $this->readUint($pos, 4); |
231 | 231 | // skip compressed file size, crc32 checksum and file flags |
232 | - $pos += 3*4; |
|
232 | + $pos += 3 * 4; |
|
233 | 233 | |
234 | 234 | $metadataLength = $this->readUint($pos, 4); |
235 | 235 | $pos += 4 + $metadataLength; |