@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | $this->contents = substr_replace($this->contents, pack('L', $timestamp), $pos, 4); |
| 96 | 96 | |
| 97 | 97 | // skip timestamp, compressed file size, crc32 checksum and file flags |
| 98 | - $pos += 4*4; |
|
| 98 | + $pos += 4 * 4; |
|
| 99 | 99 | |
| 100 | 100 | $metadataLength = $this->readUint($pos, 4); |
| 101 | 101 | $pos += 4 + $metadataLength; |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | ); |
| 128 | 128 | |
| 129 | 129 | if (!isset($algos[$signatureAlgo])) { |
| 130 | - throw new \UnexpectedValueException('Invalid hash algorithm given: '.$signatureAlgo.' expected one of Phar::MD5, Phar::SHA1, Phar::SHA256 or Phar::SHA512'); // @codeCoverageIgnore |
|
| 130 | + throw new \UnexpectedValueException('Invalid hash algorithm given: ' . $signatureAlgo . ' expected one of Phar::MD5, Phar::SHA1, Phar::SHA256 or Phar::SHA512'); // @codeCoverageIgnore |
|
| 131 | 131 | } |
| 132 | 132 | $algo = $algos[$signatureAlgo]; |
| 133 | 133 | |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | |
| 142 | 142 | $this->contents = substr($this->contents, 0, $pos) . $signature; |
| 143 | 143 | |
| 144 | - return (bool) file_put_contents($path, $this->contents); |
|
| 144 | + return (bool)file_put_contents($path, $this->contents); |
|
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | private function readUint($pos, $bytes) |
@@ -190,11 +190,11 @@ discard block |
||
| 190 | 190 | $pos += 4 + $filenameLength; |
| 191 | 191 | |
| 192 | 192 | // skip filesize and timestamp |
| 193 | - $pos += 2*4; |
|
| 193 | + $pos += 2 * 4; |
|
| 194 | 194 | |
| 195 | 195 | $compressedSizes += $this->readUint($pos, 4); |
| 196 | 196 | // skip compressed file size, crc32 checksum and file flags |
| 197 | - $pos += 3*4; |
|
| 197 | + $pos += 3 * 4; |
|
| 198 | 198 | |
| 199 | 199 | $metadataLength = $this->readUint($pos, 4); |
| 200 | 200 | $pos += 4 + $metadataLength; |
@@ -179,7 +179,7 @@ |
||
| 179 | 179 | $meta = stream_get_meta_data($target); |
| 180 | 180 | $snapShotFile = $meta['uri']; |
| 181 | 181 | |
| 182 | - if (false === (bool) stream_copy_to_stream($source, $target)) { |
|
| 182 | + if (false === (bool)stream_copy_to_stream($source, $target)) { |
|
| 183 | 183 | // @codeCoverageIgnoreStart |
| 184 | 184 | $this->err(sprintf('stream copy error: %s', $file)); |
| 185 | 185 | fclose($source); |